--
-- Host: localhost    Database: bookingcabs_local
-- ------------------------------------------------------


--
-- Current Database: `bookingcabs_local`
--


--
-- Table structure for table `activation`
--

CREATE TABLE `activation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `Verification_code` varchar(20) NOT NULL,
  `login_code` varchar(20) DEFAULT NULL,
  `isUsed` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `active`
--

CREATE TABLE `active` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` varchar(50) NOT NULL,
  `status_id` int(11) NOT NULL,
  `status_class` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `active_weekdays`
--

CREATE TABLE `active_weekdays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `weekdays_id` varchar(20) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `active_weekdays_log`
--

CREATE TABLE `active_weekdays_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `weekdays_id` varchar(20) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `admin_log`
--

CREATE TABLE `admin_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adminId` int(11) NOT NULL,
  `status` varchar(200) NOT NULL,
  `login_time` datetime NOT NULL,
  `logout_time` datetime NOT NULL,
  `login_date` date NOT NULL,
  `logout_date` date NOT NULL,
  `login_diff` time NOT NULL,
  `lat` varchar(100) NOT NULL,
  `log` varchar(100) NOT NULL,
  `ipaddress` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `admin_log_old(notused)`
--

CREATE TABLE `admin_log_old(notused)` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adminId` int(11) NOT NULL,
  `status` varchar(200) NOT NULL,
  `login_time` datetime NOT NULL,
  `logout_time` datetime NOT NULL,
  `login_date` date NOT NULL,
  `logout_date` date NOT NULL,
  `login_diff` time NOT NULL,
  `lat` varchar(100) NOT NULL,
  `log` varchar(100) NOT NULL,
  `ipaddress` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `admin_text`
--

CREATE TABLE `admin_text` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `page` text NOT NULL,
  `field` text NOT NULL,
  `text` text NOT NULL,
  `value` text NOT NULL,
  `label_id` int(11) NOT NULL,
  `language` varchar(100) NOT NULL,
  `type` int(11) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '1',
  `module` varchar(1000) DEFAULT NULL,
  `sub_module` varchar(1000) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `agent_booking_detail`
--

CREATE TABLE `agent_booking_detail` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `Agent_Id` varchar(50) DEFAULT '000',
  `Target_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Total_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Booking_Operated` int(3) unsigned zerofill DEFAULT '000',
  `Enquiry_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Booking_Rejection` int(3) unsigned zerofill DEFAULT '000',
  `Complaint_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Rescehdule_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Cancel_Booking` int(3) unsigned zerofill DEFAULT '000',
  `Login_Time` int(3) unsigned zerofill DEFAULT '000',
  `Break_Time` int(3) unsigned zerofill DEFAULT '000',
  `Booking_Month` varchar(2) DEFAULT NULL,
  `Booking_Year` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `agent_login_history`
--

CREATE TABLE `agent_login_history` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `AgentId` int(11) DEFAULT NULL,
  `LogInTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `LoginBy` int(11) DEFAULT NULL,
  `LogOutTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `LogOutBy` int(11) DEFAULT NULL,
  PRIMARY KEY (`Id`),
  KEY `AgentId` (`AgentId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;

--
-- Table structure for table `agent_work_history`
--

CREATE TABLE `agent_work_history` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `AgentID` int(11) DEFAULT NULL,
  `CallerId` varchar(50) DEFAULT NULL,
  `BookingID` varchar(50) DEFAULT NULL,
  `ActionType` varchar(50) DEFAULT NULL,
  `Date` datetime DEFAULT NULL,
  `ActionDesc` varchar(150) DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `airport_address`
--

CREATE TABLE `airport_address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(255) NOT NULL,
  `latitude` varchar(255) NOT NULL,
  `longitude` varchar(255) NOT NULL,
  `master_pkg_id` int(11) NOT NULL COMMENT 'Need to remove',
  `sub_package_id` int(11) NOT NULL COMMENT 'Need to remove',
  `cab_type` int(11) NOT NULL COMMENT 'Need to remove',
  `km` int(11) NOT NULL,
  `zone` varchar(255) NOT NULL,
  `state_id` int(10) NOT NULL COMMENT 'Need to remove',
  `fix_point` varchar(255) NOT NULL,
  `transfer_type` varchar(50) NOT NULL COMMENT 'Need to remove',
  `fare` int(10) NOT NULL,
  `city_id` int(10) NOT NULL COMMENT 'Need to remove',
  PRIMARY KEY (`id`),
  KEY `address` (`address`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `api_call_timeinterval`
--

CREATE TABLE `api_call_timeinterval` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `package_id` int(11) NOT NULL,
  `api_time` int(11) NOT NULL COMMENT 'milesecond',
  `api_distance` int(11) DEFAULT '0',
  `api_name` varchar(100) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) DEFAULT '0',
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modifiede_by` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `api_document_details`
--

CREATE TABLE `api_document_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_id` int(11) NOT NULL,
  `label_name` varchar(255) DEFAULT NULL,
  `label_description` text,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `api_name` varchar(255) NOT NULL,
  `api_url` varchar(255) NOT NULL,
  `api_method` varchar(50) NOT NULL,
  `api_params` text NOT NULL,
  `api_response` text NOT NULL,
  `api_response_desc` text,
  `order_by` int(11) NOT NULL,
  `status` tinyint(3) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `appid`
--

CREATE TABLE `appid` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientId` int(11) NOT NULL,
  `type` varchar(200) NOT NULL,
  `appId` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `bank_details`
--

CREATE TABLE `bank_details` (
  `bank_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `branch` varchar(100) DEFAULT NULL,
  `address` varchar(200) NOT NULL,
  `ifsc_code` varchar(20) NOT NULL,
  `ac_no` varchar(50) NOT NULL,
  `ac_holder_name` varchar(50) NOT NULL,
  `bank_proof` text,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` enum('0','1') NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`bank_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `banner`
--

CREATE TABLE `banner` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `banner_cat` enum('1','2') NOT NULL,
  `banner_title` varchar(100) NOT NULL,
  `banner_desc` text NOT NULL,
  `banner_valid_date_from` date NOT NULL,
  `banner_valid_date_to` date NOT NULL,
  `banner_weekdays` varchar(255) NOT NULL,
  `banner_image` text NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` enum('0','1') NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 CHECKSUM=1;

--
-- Table structure for table `base_combination`
--

CREATE TABLE `base_combination` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `client_id` int(11) NOT NULL DEFAULT '0',
  `country_id` int(11) NOT NULL DEFAULT '0',
  `state_id` int(11) NOT NULL DEFAULT '0',
  `city_id` int(11) DEFAULT NULL,
  `master_package_id` int(11) NOT NULL DEFAULT '0' COMMENT '1-Local,2-Point-to-point,3-Airport,4-Outstation',
  `master_package_mode_id` int(11) DEFAULT '0' COMMENT '1-Distance,2-hour,3-Distance+hour,4-Distance+waiting',
  `market_place` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1-Active,0-In-Active',
  `date_from` date DEFAULT NULL,
  `date_to` date DEFAULT NULL,
  `currency` int(11) DEFAULT NULL,
  `rate` tinyint(2) DEFAULT NULL COMMENT '1-Net Rate,2-Commission Rate',
  `rate_type` varchar(10) DEFAULT NULL,
  `rate_value` varchar(10) DEFAULT NULL,
  `week_days` text,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` enum('0','1','2','3') NOT NULL DEFAULT '0' COMMENT '1-Active,0-In-Active,2-Soft Delete,3-Expiry',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `base_fare`
--

CREATE TABLE `base_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `base_comb_id` int(11) NOT NULL COMMENT 'Need to be remove',
  `master_package_mode_id` int(11) NOT NULL COMMENT 'Need to be remove',
  `night_charge_status` enum('0','1') NOT NULL COMMENT '0-Inactive,1-Active',
  `extra_charge_status` tinyint(2) NOT NULL DEFAULT '0',
  `peaktime_charge_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-Inactive,1-Active',
  `pre_waiting_status` enum('0','1') NOT NULL,
  `distance_fare_status` enum('0','1') NOT NULL,
  `hourly_fare_status` enum('0','1') NOT NULL,
  `distance_hour_status` enum('0','1') NOT NULL,
  `distance_waiting_status` enum('0','1') NOT NULL,
  `black_zone_status` enum('0','1') NOT NULL,
  `credit_card_charge_status` enum('0','1') NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `base_vehicle_type`
--

CREATE TABLE `base_vehicle_type` (
  `base_vehicle_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_comb_id` int(11) NOT NULL,
  `vehicle_type_id` int(11) NOT NULL,
  `vehicle_master_id` int(11) NOT NULL DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`base_vehicle_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_comission_rate`
--

CREATE TABLE `basic_comission_rate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `commission_rate_type` varchar(30) DEFAULT NULL,
  `comission_type` varchar(20) DEFAULT NULL,
  `commission_rate_value` varchar(10) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_comission_rate_log`
--

CREATE TABLE `basic_comission_rate_log` (
  `id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `commission_rate_type` varchar(10) NOT NULL,
  `comission_type` varchar(20) NOT NULL,
  `commission_rate_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_fare_settings`
--

CREATE TABLE `basic_fare_settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `rounding` tinyint(4) NOT NULL COMMENT '1-Cash,2-Account / Credit Card',
  `level` tinyint(4) NOT NULL COMMENT '1-Normal,2-Decimal,3-Unit',
  `direction` tinyint(4) NOT NULL COMMENT '1-Nearest,2-Upward,3-Downward',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_service_rate`
--

CREATE TABLE `basic_service_rate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `service_charge_type` varchar(30) NOT NULL,
  `service_charge_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_service_rate_log`
--

CREATE TABLE `basic_service_rate_log` (
  `id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `service_charge_type` varchar(30) NOT NULL,
  `service_charge_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `basic_tax`
--

CREATE TABLE `basic_tax` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `tax_type` varchar(10) DEFAULT NULL,
  `sgst` float DEFAULT NULL,
  `cgst` float DEFAULT NULL,
  `igst` float DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `bidding_fare`
--

CREATE TABLE `bidding_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL DEFAULT '0',
  `minimum_distance` int(11) NOT NULL DEFAULT '0',
  `per_km_charge` int(11) NOT NULL DEFAULT '0',
  `round_up_km` varchar(5) NOT NULL DEFAULT 'off',
  `accumulated_instance` varchar(5) NOT NULL DEFAULT 'off',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `bkg_images`
--

CREATE TABLE `bkg_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `image_type` varchar(20) DEFAULT NULL,
  `image` text,
  `image_approval_status` tinyint(2) NOT NULL DEFAULT '1',
  `image_default_status` tinyint(2) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `black_zone`
--

CREATE TABLE `black_zone` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_comb_id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `latitude` varchar(50) NOT NULL,
  `longitude` varchar(50) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

CREATE TABLE `booking` (
  `booking_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `reference_number` varchar(50) DEFAULT NULL,
  `agent_reference` varchar(50) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `status_c` int(11) DEFAULT '0' COMMENT 'column use at the time of cancel booking',
  `booking_status` int(11) NOT NULL DEFAULT '1',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `client_id` int(11) NOT NULL DEFAULT '0',
  `driver_id` int(11) NOT NULL DEFAULT '0',
  `package_id` int(11) DEFAULT NULL,
  `master_package_mode_id` int(11) NOT NULL DEFAULT '0',
  `master_package_id` int(11) NOT NULL,
  `outstation_module_type` tinyint(3) DEFAULT '0' COMMENT '1-Round-Trip,2-Multi-City',
  `master_vehicle_type_id` int(11) NOT NULL DEFAULT '0',
  `base_vehicle_id` int(11) NOT NULL,
  `vehicle_master_id` int(11) DEFAULT NULL COMMENT 'When driver pick booking vehicle Id will insert',
  `coupon_id` int(11) DEFAULT NULL,
  `route_id` int(11) DEFAULT NULL,
  `csr_id` varchar(50) DEFAULT NULL,
  `is_corportate` tinyint(1) DEFAULT NULL,
  `is_account` tinyint(1) DEFAULT NULL,
  `is_updation_allow` varchar(10) NOT NULL DEFAULT 'TRUE',
  `no_of_vehicles` int(11) NOT NULL DEFAULT '0',
  `flight_number` varchar(50) DEFAULT NULL,
  `airport` int(11) DEFAULT NULL,
  `company` varchar(200) DEFAULT NULL,
  `priority` varchar(50) DEFAULT NULL,
  `app_client` text,
  `partner` int(11) DEFAULT NULL,
  `customer_type` varchar(100) DEFAULT NULL,
  `charge_type` int(11) DEFAULT '1',
  `device_type` varchar(50) DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL COMMENT 'column use at the time of cancel booking',
  `remark` varchar(255) DEFAULT NULL COMMENT 'column use at the time of cancel booking',
  `driver_note` text,
  `client_note` text,
  `features` text,
  `user_feedback` text,
  `reschedule_date` datetime DEFAULT NULL,
  `booking_date` datetime DEFAULT NULL,
  `booking_release_date` datetime DEFAULT NULL,
  `filter_data` text,
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`booking_id`),
  KEY `reference_number` (`reference_number`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_actual_details`
--

CREATE TABLE `booking_actual_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `arrival_time_pre` time DEFAULT NULL,
  `arrival_time_post` time DEFAULT NULL,
  `arrival_time_actual` datetime NOT NULL,
  `actual_waiting_distance` int(11) NOT NULL DEFAULT '0',
  `actual_driven_distance` int(11) DEFAULT '0',
  `actual_distance` float NOT NULL DEFAULT '0',
  `actual_time` time NOT NULL,
  `actual_driven_duration` time DEFAULT NULL,
  `final_latitude` varchar(20) NOT NULL,
  `final_longitude` varchar(20) NOT NULL,
  `return_date` date DEFAULT NULL,
  `return_time` time DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_actual_pickdrop_details`
--

CREATE TABLE `booking_actual_pickdrop_details` (
  `pickdrop_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `adults` int(11) DEFAULT NULL,
  `childs` int(11) DEFAULT NULL,
  `luggages` int(11) DEFAULT NULL,
  `pickup_date` date DEFAULT NULL,
  `pickup_time` time DEFAULT NULL,
  `pickup_area` varchar(255) DEFAULT NULL,
  `pickup_address` varchar(255) DEFAULT NULL,
  `pickup_country` varchar(50) DEFAULT NULL,
  `pickup_state` varchar(50) DEFAULT NULL,
  `pickup_city` varchar(50) DEFAULT NULL,
  `pickup_latitude` varchar(20) DEFAULT NULL,
  `pickup_longitude` varchar(20) DEFAULT NULL,
  `pickup_zone` varchar(100) DEFAULT NULL,
  `drop_date` date DEFAULT NULL,
  `drop_time` time DEFAULT NULL,
  `drop_area` varchar(255) DEFAULT NULL,
  `drop_address` varchar(255) DEFAULT NULL,
  `drop_country` varchar(50) DEFAULT NULL,
  `drop_state` varchar(50) DEFAULT NULL,
  `drop_city` varchar(50) DEFAULT NULL,
  `drop_latitude` varchar(20) DEFAULT NULL,
  `drop_longitude` varchar(20) DEFAULT NULL,
  `drop_zone` varchar(100) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`pickdrop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_actual_tax`
--

CREATE TABLE `booking_actual_tax` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_id` int(11) NOT NULL,
  `tax_type` varchar(10) DEFAULT NULL,
  `sgst` float DEFAULT NULL,
  `cgst` float DEFAULT NULL,
  `igst` float DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_charges`
--

CREATE TABLE `booking_charges` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `BookingID` int(11) NOT NULL COMMENT 'Reference for Booking Register',
  `waitingCharge` varchar(50) NOT NULL COMMENT 'Charges to be paid',
  `tripCharge` float NOT NULL COMMENT 'Reason for charge',
  `minimumCharge` int(11) NOT NULL COMMENT 'Driver/csr',
  `totalBill` double NOT NULL,
  `AddedTime` datetime NOT NULL COMMENT 'Server Time',
  `is_paid` int(11) NOT NULL,
  `balance_amt` double(10,2) NOT NULL DEFAULT '0.00',
  `paid_at` datetime NOT NULL,
  `currency` varchar(11) NOT NULL,
  `invoice_number` varchar(100) DEFAULT NULL,
  `payment_type` varchar(20) DEFAULT NULL,
  `fees` int(11) NOT NULL DEFAULT '0',
  `total_price` int(11) NOT NULL DEFAULT '0',
  `total_tax_price` int(11) NOT NULL DEFAULT '0',
  `distance_rate` int(11) NOT NULL DEFAULT '0',
  `duration_rate` int(11) NOT NULL DEFAULT '0',
  `starting_rate` int(11) NOT NULL DEFAULT '0',
  `base_price` int(11) NOT NULL DEFAULT '0',
  `tax_price` int(11) NOT NULL DEFAULT '0',
  `starting_charge` int(11) NOT NULL DEFAULT '0',
  `distance_charge` int(11) NOT NULL DEFAULT '0',
  `duration_charge` int(11) NOT NULL DEFAULT '0',
  `minimum_distance` int(11) NOT NULL DEFAULT '0',
  `cancellation_price` int(11) NOT NULL,
  `companyshare` int(11) NOT NULL,
  `drivershare` int(11) NOT NULL,
  `partnershare` int(50) NOT NULL,
  `minimum_price` int(11) DEFAULT NULL,
  `extracharges` int(11) NOT NULL,
  `nightcharge_unit` varchar(10) DEFAULT NULL,
  `nightcharge` varchar(5) NOT NULL,
  `nightcharge_price` varchar(5) NOT NULL,
  `night_rate_begins` time NOT NULL DEFAULT '00:00:00',
  `night_rate_ends` time NOT NULL DEFAULT '00:00:00',
  `extras` text NOT NULL,
  `extraPrice` int(11) NOT NULL,
  `peak_time_value` text,
  `peak_time_price` float DEFAULT NULL,
  `basic_tax` varchar(5) NOT NULL,
  `basic_tax_type` varchar(10) NOT NULL,
  `basic_tax_price` varchar(5) NOT NULL,
  `pre_waiting_time` time NOT NULL,
  `pre_waiting_charge` int(11) NOT NULL,
  `waiting_time` time NOT NULL,
  `waiting_charge` int(11) NOT NULL,
  `cgst_tax` float DEFAULT '0',
  `igst_tax` float DEFAULT '0',
  `sgst_tax` float DEFAULT '0',
  `estimated_price_before_markup` int(11) NOT NULL,
  `markup_type` varchar(5) NOT NULL,
  `markup_value` int(11) NOT NULL,
  `markup_price` int(11) NOT NULL,
  `driver_share_amt` int(11) NOT NULL,
  `comp_share_amt` int(11) NOT NULL,
  `partner_share_amt` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `BookingID` (`BookingID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_distance`
--

CREATE TABLE `booking_distance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `from` varchar(200) DEFAULT '0',
  `to` varchar(200) DEFAULT '0',
  `distance` varchar(200) DEFAULT NULL,
  `booking_id` int(11) DEFAULT NULL,
  `device_time` datetime DEFAULT NULL,
  `datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `WaitingTime` time NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;

--
-- Table structure for table `booking_estimation`
--

CREATE TABLE `booking_estimation` (
  `booking_estimation_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `estimated_time` varchar(10) DEFAULT NULL,
  `estimated_distance` int(11) DEFAULT '0',
  `estimateprice_before_discount` int(11) DEFAULT '0',
  `local_estimateprice_before_discount` double(5,2) DEFAULT '0.00',
  `discount_price` int(11) DEFAULT '0',
  `local_discount_price` double(5,2) DEFAULT '0.00',
  `service_charge` double(5,2) NOT NULL DEFAULT '0.00',
  `user_markup` double(5,2) NOT NULL DEFAULT '0.00',
  `booking_amt_percentage` int(11) DEFAULT '0',
  `estimated_final_price` int(11) DEFAULT '0',
  `estimated_price_before_markup` int(11) DEFAULT '0',
  `approx_distance_charge` int(11) DEFAULT '0',
  `approx_after_km` int(11) DEFAULT '0',
  `approx_after_hour` int(11) NOT NULL DEFAULT '0',
  `approx_hour_charge` int(11) NOT NULL DEFAULT '0',
  `approx_waiting_charge` int(11) DEFAULT '0',
  `approx_waiting_minute` int(11) DEFAULT '0',
  `minimum_charge` int(11) NOT NULL DEFAULT '0',
  `night_rate_type` enum('0','%','Rs') DEFAULT NULL COMMENT '%,RS',
  `night_rate_value` int(11) DEFAULT '0',
  `night_rate_begins` time DEFAULT '00:00:00',
  `night_rate_ends` time DEFAULT '00:00:00',
  `night_charge_price` int(11) DEFAULT '0',
  `premiums_type` varchar(20) DEFAULT NULL,
  `premiums_value` float DEFAULT '0',
  `premiums_price` float NOT NULL DEFAULT '0',
  `extras` text,
  `extra_price` int(11) DEFAULT '0',
  `peak_time_value` text,
  `peak_time_price` float DEFAULT '0',
  `booking_cancellation_rule` text,
  `cgst_tax` float NOT NULL DEFAULT '0',
  `igst_tax` float NOT NULL DEFAULT '0',
  `sgst_tax` float NOT NULL DEFAULT '0',
  `total_tax_price` int(11) NOT NULL DEFAULT '0',
  `commi_type` int(5) NOT NULL DEFAULT '0' COMMENT '1-%,2-Value',
  `commi_value` double(5,2) NOT NULL DEFAULT '0.00',
  `currency_id` int(11) NOT NULL,
  `coupon_type` varchar(10) DEFAULT NULL,
  `coupon_value` float DEFAULT '0',
  `rounding` varchar(10) DEFAULT NULL,
  `level` varchar(10) DEFAULT NULL,
  `direction` varchar(10) DEFAULT NULL,
  `company_share_type` varchar(10) DEFAULT NULL,
  `company_share_value` float NOT NULL DEFAULT '0',
  `partner_share_type` varchar(10) DEFAULT NULL,
  `partner_share_value` float NOT NULL DEFAULT '0',
  `driver_share_type` varchar(10) DEFAULT NULL,
  `driver_share_value` float NOT NULL DEFAULT '0',
  `conversion_rate` double(5,2) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`booking_estimation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_estimation_old1`
--

CREATE TABLE `booking_estimation_old1` (
  `booking_estimation_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `estimated_time` varchar(10) DEFAULT NULL,
  `estimated_distance` varchar(10) DEFAULT NULL,
  `estimateprice_before_discount` varchar(10) DEFAULT NULL,
  `local_estimateprice_before_discount` varchar(10) DEFAULT NULL,
  `discount_price` varchar(10) DEFAULT NULL,
  `local_discount_price` varchar(10) DEFAULT NULL,
  `estimated_final_price` varchar(10) DEFAULT NULL,
  `booking_amt_percentage` varchar(10) DEFAULT NULL,
  `booking_amt_paid` varchar(10) DEFAULT NULL,
  `booking_amt_balance` varchar(10) DEFAULT NULL,
  `estimated_price_before_markup` varchar(20) DEFAULT NULL,
  `approx_distance_charge` varchar(10) DEFAULT NULL,
  `approx_after_km` varchar(10) DEFAULT NULL,
  `approx_waiting_charge` varchar(11) DEFAULT NULL,
  `approx_waiting_minute` varchar(11) DEFAULT NULL,
  `minimum_charge` varchar(11) DEFAULT NULL,
  `night_rate_type` enum('%','Rs') DEFAULT NULL COMMENT '%,RS',
  `night_rate_value` varchar(10) DEFAULT NULL,
  `night_rate_begins` time DEFAULT NULL,
  `night_rate_ends` time DEFAULT NULL,
  `night_charge_price` varchar(50) DEFAULT NULL,
  `premiums` varchar(50) DEFAULT NULL,
  `premiums_unit` varchar(50) DEFAULT NULL,
  `extras` text,
  `extra_price` varchar(10) DEFAULT NULL,
  `peak_time_unit` enum('%','Rs') DEFAULT NULL,
  `peak_time_value` varchar(10) DEFAULT NULL,
  `peak_time_from` time DEFAULT NULL,
  `peak_time_to` time DEFAULT NULL,
  `peak_time_price` varchar(10) DEFAULT NULL,
  `cgst_tax` varchar(10) DEFAULT NULL,
  `igst_tax` varchar(10) DEFAULT NULL,
  `sgst_tax` varchar(10) DEFAULT NULL,
  `total_tax_price` varchar(10) DEFAULT NULL,
  `markup_type` varchar(50) DEFAULT NULL COMMENT '1-Rs,2-%',
  `markup_value` varchar(50) DEFAULT NULL,
  `markup_price` varchar(50) DEFAULT NULL,
  `markup_amt_base` varchar(50) DEFAULT NULL,
  `extra_hr_markup` varchar(50) DEFAULT NULL,
  `extra_km_markup` varchar(50) DEFAULT NULL,
  `commi_type` varchar(50) DEFAULT NULL,
  `commi_value` varchar(50) DEFAULT NULL,
  `rounding` varchar(10) DEFAULT NULL,
  `level` varchar(10) DEFAULT NULL,
  `direction` varchar(10) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `conversion_rate` varchar(10) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`booking_estimation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_feature`
--

CREATE TABLE `booking_feature` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `feature_name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_invoice`
--

CREATE TABLE `booking_invoice` (
  `booking_invoice_id` int(11) NOT NULL AUTO_INCREMENT,
  `year` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `prefix` varchar(20) NOT NULL,
  `invoice_number` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  PRIMARY KEY (`booking_invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Generate user''s Invoice Id';

--
-- Table structure for table `booking_invoice_bill`
--

CREATE TABLE `booking_invoice_bill` (
  `invoice_bill_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_invoice_id` int(11) NOT NULL,
  `booking_charge_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`invoice_bill_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Assign Booking Id Against Invoice Number';

--
-- Table structure for table `booking_logs`
--

CREATE TABLE `booking_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bookingid` int(11) NOT NULL,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL,
  `message` text NOT NULL,
  `time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `bookingid` (`bookingid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_markup`
--

CREATE TABLE `booking_markup` (
  `booking_markup_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `markup_amt_base` tinyint(2) NOT NULL,
  `mark_amt_type` enum('','%','Rs') NOT NULL,
  `basic_amt` float NOT NULL DEFAULT '0',
  `extra_km_markup` float NOT NULL DEFAULT '0',
  `extra_hr_markup` float NOT NULL DEFAULT '0',
  `markup_amount` float NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  PRIMARY KEY (`booking_markup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_msg`
--

CREATE TABLE `booking_msg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bookingid` int(11) DEFAULT '0',
  `sender` int(11) DEFAULT '0',
  `receiver` int(11) DEFAULT '0',
  `msg` text,
  `datetime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bookingid` (`bookingid`),
  KEY `sender` (`sender`),
  KEY `receiver` (`receiver`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='booking messages';

--
-- Table structure for table `booking_pickdrop_details`
--

CREATE TABLE `booking_pickdrop_details` (
  `pickdrop_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `adults` int(11) DEFAULT NULL,
  `childs` int(11) DEFAULT NULL,
  `luggages` int(11) DEFAULT NULL,
  `pickup_date` date DEFAULT NULL,
  `pickup_time` time DEFAULT NULL,
  `pickup_area` varchar(255) DEFAULT NULL,
  `pickup_address` varchar(255) DEFAULT NULL,
  `pickup_country` varchar(50) DEFAULT NULL,
  `pickup_state` varchar(50) DEFAULT NULL,
  `pickup_city` varchar(50) DEFAULT NULL,
  `pickup_latitude` varchar(20) DEFAULT NULL,
  `pickup_longitude` varchar(20) DEFAULT NULL,
  `pickup_zone` varchar(100) DEFAULT NULL,
  `drop_date` date DEFAULT NULL,
  `drop_time` time DEFAULT NULL,
  `drop_area` varchar(255) DEFAULT NULL,
  `drop_address` varchar(255) DEFAULT NULL,
  `drop_country` varchar(50) DEFAULT NULL,
  `drop_state` varchar(50) DEFAULT NULL,
  `drop_city` varchar(50) DEFAULT NULL,
  `drop_latitude` varchar(20) DEFAULT NULL,
  `drop_longitude` varchar(20) DEFAULT NULL,
  `drop_zone` varchar(100) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`pickdrop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_refund`
--

CREATE TABLE `booking_refund` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL COMMENT 'Reference for Booking Register',
  `tripCharge` float NOT NULL COMMENT 'Reason for charge',
  `minimum_charge` int(11) NOT NULL COMMENT 'Driver/csr',
  `totalBill` double NOT NULL,
  `is_paid` int(11) NOT NULL,
  `balance_amt` double(10,2) NOT NULL DEFAULT '0.00',
  `paid_at` datetime NOT NULL,
  `currency` varchar(11) NOT NULL,
  `invoice_number` varchar(100) DEFAULT NULL,
  `payment_type` varchar(20) DEFAULT NULL,
  `fees` int(11) NOT NULL DEFAULT '0',
  `total_price` int(11) NOT NULL DEFAULT '0',
  `total_tax_price` varchar(11) NOT NULL DEFAULT '0',
  `cancellation_rule_id` int(11) NOT NULL,
  `cancellation_charge` varchar(11) NOT NULL,
  `companyshare` int(11) NOT NULL,
  `drivershare` int(11) NOT NULL,
  `partnershare` int(50) NOT NULL,
  `extracharges` int(11) NOT NULL,
  `cgst_tax` float DEFAULT '0',
  `igst_tax` float DEFAULT '0',
  `sgst_tax` float DEFAULT '0',
  `igst_amount` varchar(10) NOT NULL,
  `cgst_amount` varchar(10) NOT NULL,
  `sgst_amount` varchar(10) NOT NULL,
  `estimated_price_before_markup` int(11) NOT NULL,
  `markup_type` varchar(5) NOT NULL,
  `markup_value` int(11) NOT NULL,
  `markup_price` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_register`
--

CREATE TABLE `booking_register` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bookingid` int(11) NOT NULL,
  `driverId` int(11) NOT NULL,
  `status` varchar(5) NOT NULL DEFAULT 'M',
  `updateOn` datetime NOT NULL,
  `reason` text,
  `type` varchar(100) NOT NULL,
  `read_status` enum('0','1') NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `bookingid` (`bookingid`),
  KEY `driverId` (`driverId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_resec_reassign`
--

CREATE TABLE `booking_resec_reassign` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) DEFAULT NULL,
  `booking_type` int(11) DEFAULT NULL,
  `old_driver_id` int(11) DEFAULT NULL,
  `new_driver_id` int(11) DEFAULT NULL,
  `old_pick_time` time NOT NULL,
  `old_pick_date` date NOT NULL,
  `new_pick_time` time NOT NULL,
  `new_pick_date` date NOT NULL,
  `old_booking_date` datetime NOT NULL,
  `new_booking_date` datetime NOT NULL,
  `old_cab_status` int(11) DEFAULT NULL,
  `new_cab_status` int(11) DEFAULT NULL,
  `old_estimated_price` double(10,2) DEFAULT NULL,
  `new_estimated_price` double(10,2) DEFAULT NULL,
  `created_by` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_stack`
--

CREATE TABLE `booking_stack` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `latitude` varchar(25) NOT NULL,
  `longitude` varchar(25) NOT NULL,
  `status` varchar(5) NOT NULL COMMENT 'W for Waiting,RA for Reject by All,A for Accepted',
  `last_try` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_status`
--

CREATE TABLE `booking_status` (
  `id` int(11) NOT NULL,
  `booking_id` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT 'This field is used to booking status 1 for booking, 10 for cancel',
  `reason` varchar(255) NOT NULL,
  `remark` varchar(255) NOT NULL,
  `driver_note` varchar(255) NOT NULL,
  `client_note` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_tracker`
--

CREATE TABLE `booking_tracker` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `BookingID` int(11) NOT NULL COMMENT 'Reference from Booking Register',
  `DriverId` int(11) NOT NULL DEFAULT '0',
  `Latitutude` varchar(50) DEFAULT NULL,
  `Logitude` varchar(50) DEFAULT NULL,
  `Date_Time` datetime NOT NULL,
  `CabStatus` int(11) NOT NULL COMMENT 'Cab status Reference',
  `UpdateOn` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `BookingID` (`BookingID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `booking_vendorfare_estimation`
--

CREATE TABLE `booking_vendorfare_estimation` (
  `booking_estimation_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `estimated_time` varchar(10) DEFAULT NULL,
  `estimated_distance` int(11) DEFAULT '0',
  `estimateprice_before_discount` int(11) DEFAULT '0',
  `local_estimateprice_before_discount` double(5,2) DEFAULT '0.00',
  `discount_price` int(11) DEFAULT '0',
  `local_discount_price` double(5,2) DEFAULT '0.00',
  `estimated_final_price` int(11) DEFAULT '0',
  `booking_amt_percentage` int(11) DEFAULT '0' COMMENT 'Remove column',
  `booking_amt_paid` int(11) DEFAULT '0' COMMENT 'Remove column',
  `booking_amt_balance` int(11) DEFAULT '0' COMMENT 'Remove column',
  `estimated_price_before_markup` int(11) DEFAULT '0',
  `approx_distance_charge` int(11) DEFAULT '0',
  `approx_hour_charge` int(11) DEFAULT '0',
  `approx_after_km` int(11) DEFAULT '0',
  `approx_after_hour` float DEFAULT '0',
  `approx_waiting_charge` int(11) DEFAULT '0',
  `approx_waiting_minute` int(11) DEFAULT '0',
  `minimum_charge` int(11) NOT NULL DEFAULT '0',
  `night_rate_type` enum('%','Rs') DEFAULT NULL COMMENT '%,RS',
  `night_rate_value` int(11) DEFAULT '0',
  `night_rate_begins` time DEFAULT NULL,
  `night_rate_ends` time DEFAULT NULL,
  `night_charge_price` int(11) DEFAULT '0',
  `premiums` varchar(50) DEFAULT NULL,
  `premiums_unit` varchar(50) DEFAULT NULL,
  `extras` text,
  `extra_price` int(11) DEFAULT '0',
  `peak_time_unit` enum('%','Rs') DEFAULT NULL,
  `peak_time_value` int(11) DEFAULT '0',
  `peak_time_from` time DEFAULT NULL,
  `peak_time_to` time DEFAULT NULL,
  `peak_time_price` int(11) DEFAULT '0',
  `cgst_tax` int(11) NOT NULL DEFAULT '0',
  `igst_tax` int(11) NOT NULL DEFAULT '0',
  `sgst_tax` int(11) NOT NULL DEFAULT '0',
  `total_tax_price` int(11) NOT NULL DEFAULT '0',
  `commi_type` int(5) NOT NULL DEFAULT '0' COMMENT '1-%,2-Value',
  `commi_value` double(5,2) NOT NULL,
  `rounding` varchar(10) DEFAULT NULL,
  `level` varchar(10) DEFAULT NULL,
  `direction` varchar(10) DEFAULT NULL,
  `currency_id` int(11) NOT NULL,
  `coupon_type` varchar(10) DEFAULT NULL,
  `coupon_value` float NOT NULL DEFAULT '0',
  `conversion_rate` double(5,2) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`booking_estimation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cab_status`
--

CREATE TABLE `cab_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` text NOT NULL,
  `status_id` int(11) NOT NULL,
  `status` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `camera_security_image`
--

CREATE TABLE `camera_security_image` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `image` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cancellation_fare`
--

CREATE TABLE `cancellation_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT '0',
  `cancellation_master_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `round_off` int(11) NOT NULL DEFAULT '0',
  `days` varchar(11) DEFAULT '0',
  `hours` varchar(11) DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` int(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `category`
--

CREATE TABLE `category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `city_distance_list`
--

CREATE TABLE `city_distance_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `source_city` varchar(255) DEFAULT NULL,
  `destination_city` varchar(255) DEFAULT NULL,
  `distance_km` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `source_city` (`source_city`,`destination_city`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `city_distance_list_old`
--

CREATE TABLE `city_distance_list_old` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `source_city` varchar(255) DEFAULT NULL,
  `destination_city` varchar(255) DEFAULT NULL,
  `distance_km` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `source_city` (`source_city`,`destination_city`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `city_pages`
--

CREATE TABLE `city_pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_setup_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `master_package_id` int(11) NOT NULL DEFAULT '0',
  `page_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `page_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `meta_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `meta_keywords` text COLLATE utf8_unicode_ci NOT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `no_of_sightseeing` int(11) DEFAULT NULL,
  `no_of_hotels` int(11) DEFAULT NULL,
  `no_of_offers` int(11) DEFAULT NULL,
  `image_path` text COLLATE utf8_unicode_ci,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `city_toll_tax`
--

CREATE TABLE `city_toll_tax` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `toll` int(11) NOT NULL DEFAULT '0',
  `parking` int(11) NOT NULL DEFAULT '0',
  `city_tax` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `client`
--

CREATE TABLE `client` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `clientName` varchar(200) NOT NULL,
  `clientId` varchar(200) NOT NULL,
  `clientKey` varchar(200) NOT NULL,
  `clientPrivateKey` varchar(200) NOT NULL,
  `driver_share` int(11) NOT NULL,
  `partner_share` int(11) NOT NULL,
  `company_share` int(11) NOT NULL,
  `ip_address` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cms_menu`
--

CREATE TABLE `cms_menu` (
  `menu_id` int(11) NOT NULL AUTO_INCREMENT,
  `menu_group_id` tinyint(4) NOT NULL,
  `cms_page_id` int(11) NOT NULL,
  `menu_name` varchar(255) NOT NULL,
  `menu_order` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cms_pages`
--

CREATE TABLE `cms_pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_setup_id` int(11) NOT NULL,
  `page_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `page_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `page_url` text COLLATE utf8_unicode_ci NOT NULL,
  `page_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `page_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `show_after_login` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `page_target` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `icon_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `page_order` int(11) NOT NULL,
  `meta_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `meta_keywords` text COLLATE utf8_unicode_ci NOT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `company`
--

CREATE TABLE `company` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `company_name` varchar(50) NOT NULL,
  `contact_person_name` varchar(50) DEFAULT NULL,
  `website_url` varchar(50) NOT NULL,
  `country` int(11) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  `city` int(11) DEFAULT NULL,
  `company_address` varchar(255) NOT NULL,
  `pincode` varchar(10) NOT NULL,
  `email` varchar(111) NOT NULL,
  `alt_email` varchar(111) DEFAULT NULL,
  `country_prefix_mob` varchar(10) NOT NULL DEFAULT '0',
  `mobile_no` varchar(15) NOT NULL,
  `country_prefix_land` varchar(10) NOT NULL DEFAULT '0',
  `landline_no` varchar(20) DEFAULT NULL,
  `service_tax_gst` varchar(30) DEFAULT NULL,
  `pancard_no` varchar(15) DEFAULT NULL,
  `added_by` int(11) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_api_configuration`
--

CREATE TABLE `company_api_configuration` (
  `api_config_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `map_api_key` varchar(200) DEFAULT NULL,
  `map_style` varchar(100) DEFAULT NULL,
  `no_mark_place` int(11) DEFAULT NULL,
  `multipoint_zoom_level` int(11) DEFAULT NULL,
  `singlepoint_zoom_level` int(11) DEFAULT NULL,
  `default_latitude` varchar(50) DEFAULT NULL,
  `default_longitude` varchar(50) DEFAULT NULL,
  `captcha_type` varchar(100) DEFAULT NULL,
  `captcha_key` text,
  `google_font` tinyint(2) DEFAULT NULL,
  `facebook_login_status` tinyint(2) DEFAULT '0' COMMENT '0-False,1-True',
  `facebook_api_key` varchar(100) DEFAULT NULL,
  `role` varchar(50) DEFAULT NULL,
  `goole_login_status` tinyint(2) DEFAULT '0' COMMENT '0-False,1-True',
  `google_client_id` varchar(100) DEFAULT NULL,
  `google_secret_id` varchar(100) DEFAULT NULL,
  `google_redirect_url` varchar(255) DEFAULT NULL,
  `linkedin_login_status` tinyint(2) DEFAULT '0',
  `linkedin_client_id` varchar(255) DEFAULT NULL,
  `linkedin_secret_id` varchar(255) DEFAULT NULL,
  `linkedin_redirect_url` varchar(255) DEFAULT NULL,
  `tawkchat_status` int(11) NOT NULL DEFAULT '0',
  `tawkchat_script` text NOT NULL,
  `created_date` date DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`api_config_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_markup`
--

CREATE TABLE `company_markup` (
  `comp_markup_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `base_vehicle_id` int(11) NOT NULL DEFAULT '0',
  `user_grade` int(11) DEFAULT NULL COMMENT 'A,B,C,D,E',
  `markup_category` int(11) DEFAULT NULL COMMENT '1-user,2-Booking Type,3-Country,4-City,5-State',
  `mark_amt_type` enum('%','Rs') DEFAULT NULL COMMENT 'Percentage ,Fixed',
  `user_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `master_package_id` int(11) DEFAULT NULL,
  `basic_amt` varchar(10) DEFAULT NULL,
  `markup_amt_base` int(11) NOT NULL COMMENT '1-Total,2-Base',
  `extra_km_markup` varchar(5) DEFAULT NULL,
  `extra_hr_markup` varchar(5) DEFAULT NULL,
  `currency` int(11) DEFAULT '0',
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`comp_markup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_markup_logs`
--

CREATE TABLE `company_markup_logs` (
  `comp_markup_log_id` int(11) NOT NULL AUTO_INCREMENT,
  `comp_markup_id` int(11) DEFAULT NULL,
  `company_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `base_vehicle_id` int(11) NOT NULL,
  `user_grade` int(11) DEFAULT NULL COMMENT 'A,B,C,D,E',
  `markup_category` int(11) DEFAULT NULL COMMENT '1-user,2-Booking Type,3-Country,4-City',
  `mark_amt_type` enum('%','Rs') DEFAULT NULL COMMENT 'Percentage ,Fixed',
  `user_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `master_package_id` int(11) DEFAULT NULL,
  `basic_amt` varchar(10) DEFAULT NULL,
  `markup_amt_base` int(11) NOT NULL COMMENT '1-Total,2-Base',
  `extra_km_markup` varchar(5) DEFAULT NULL,
  `extra_hr_markup` varchar(5) DEFAULT NULL,
  `currency` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`comp_markup_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_setup`
--

CREATE TABLE `company_setup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `user_api_key` varchar(100) NOT NULL,
  `user_type` int(5) NOT NULL,
  `first_name` varchar(50) NOT NULL,
  `last_name` varchar(50) NOT NULL,
  `email` varchar(100) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `mobile` varchar(15) NOT NULL,
  `user_name` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `country_id` int(5) NOT NULL,
  `state_id` int(5) NOT NULL,
  `city_id` int(5) NOT NULL,
  `trading_name` varchar(100) NOT NULL,
  `api_token` varchar(100) NOT NULL,
  `com_name` varchar(100) NOT NULL,
  `comp_address` varchar(256) NOT NULL,
  `domain_address` varchar(100) NOT NULL,
  `office_address` varchar(256) NOT NULL,
  `payment_mode` varchar(15) NOT NULL,
  `payment_options` varchar(15) NOT NULL,
  `credit_limit` int(11) NOT NULL,
  `ref_no` varchar(100) NOT NULL,
  `no_of_agent` int(7) NOT NULL,
  `no_of_mem_partner` int(2) NOT NULL,
  `no_of_staff` int(7) NOT NULL,
  `package_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `pan_no` varchar(20) NOT NULL,
  `fax_no` varchar(20) NOT NULL,
  `gst_no` varchar(20) NOT NULL,
  `site_name` varchar(100) NOT NULL,
  `site_title` varchar(256) NOT NULL,
  `site_url` varchar(100) NOT NULL,
  `analytics_code` text NOT NULL,
  `additional_javascript` text NOT NULL,
  `meta_key` varchar(256) NOT NULL,
  `meta_desc` varchar(256) NOT NULL,
  `global_email` varchar(100) NOT NULL,
  `admin_footer` text NOT NULL,
  `admin_footer_url` varchar(100) NOT NULL,
  `frontend_footer` text NOT NULL,
  `frontend_footer_url` varchar(100) NOT NULL,
  `admin_header_logo` varchar(50) NOT NULL,
  `frontend_header_logo` varchar(50) NOT NULL,
  `admin_favicon` varchar(50) NOT NULL,
  `frontend_favicon` varchar(50) NOT NULL,
  `start_on` datetime NOT NULL,
  `expiry_on` datetime NOT NULL,
  `opr_name` varchar(100) NOT NULL,
  `opr_lat` varchar(50) NOT NULL,
  `opr_long` varchar(50) NOT NULL,
  `dis_unit` varchar(15) NOT NULL,
  `price_format` varchar(20) NOT NULL,
  `seo_mode` tinyint(2) NOT NULL,
  `lang_direction` varchar(5) NOT NULL,
  `maintenance_mode` varchar(20) NOT NULL,
  `maintenance_mode_message` varchar(255) NOT NULL,
  `date_format_short` varchar(20) NOT NULL,
  `date_format_long` varchar(20) NOT NULL,
  `time_format_short` varchar(20) NOT NULL,
  `time_format_long` varchar(20) NOT NULL,
  `billing_payment_mode` tinyint(2) NOT NULL,
  `shopping_cart_mode` tinyint(2) NOT NULL,
  `payment_flow` varchar(255) NOT NULL,
  `logo_url` varchar(255) NOT NULL,
  `pay_to_text` varchar(255) NOT NULL,
  `working_hour` varchar(50) NOT NULL,
  `global_cache_mode` tinyint(2) NOT NULL,
  `cache_adapter` varchar(255) NOT NULL,
  `cache_directory` varchar(255) NOT NULL,
  `smtp_host` varchar(255) NOT NULL,
  `smtp_username` varchar(255) NOT NULL,
  `smtp_password` varchar(255) NOT NULL,
  `smtp_port` varchar(5) NOT NULL,
  `facebook` varchar(100) NOT NULL,
  `twitter` varchar(100) NOT NULL,
  `linkedin` varchar(100) NOT NULL,
  `instagram` varchar(100) NOT NULL,
  `youtube` varchar(100) NOT NULL,
  `client_app_url` varchar(200) DEFAULT NULL,
  `driver_app_url` varchar(200) DEFAULT NULL,
  `ios_client_app_url` varchar(200) DEFAULT NULL,
  `ios_driver_app_url` varchar(200) DEFAULT NULL,
  `developed_by` varchar(200) DEFAULT NULL,
  `booking_prefix` varchar(50) DEFAULT NULL,
  `driver_min_balance` double(5,2) NOT NULL DEFAULT '0.00',
  `short_code` varchar(250) NOT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `ac_holder_name` varchar(255) DEFAULT NULL,
  `branch` varchar(100) DEFAULT NULL,
  `ifsc_code` varchar(50) DEFAULT NULL,
  `account_no` varchar(50) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_share`
--

CREATE TABLE `company_share` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `share_type_id` tinyint(4) NOT NULL COMMENT '1-company,2-Partner,3-Driver',
  `share_value_type` tinyint(4) NOT NULL COMMENT '1-%,2-Rs',
  `share_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `company_vendor_driver`
--

CREATE TABLE `company_vendor_driver` (
  `sass_driver_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) NOT NULL,
  `driver_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`sass_driver_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Map Vendor''s driver or client';

--
-- Table structure for table `company_watermark_setting`
--

CREATE TABLE `company_watermark_setting` (
  `watermark_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `watermark_status` tinyint(2) DEFAULT NULL COMMENT '0-False,1-Active',
  `watermark_inside_outside` tinyint(2) DEFAULT NULL,
  `background_color` varchar(100) DEFAULT NULL,
  `background_transparency` tinyint(2) DEFAULT NULL,
  `watermark_height` tinyint(2) DEFAULT NULL,
  `watermark_position` tinyint(2) DEFAULT NULL,
  `icon_image` tinyint(2) DEFAULT NULL COMMENT '0-False,1-True',
  `icon_file` varchar(100) DEFAULT NULL,
  `max_height_per` varchar(10) DEFAULT NULL,
  `icon_alignment` varchar(20) DEFAULT NULL,
  `icon_vertical_alignment` varchar(50) DEFAULT NULL,
  `icon_offset_X` varchar(20) DEFAULT NULL,
  `icon_offset_Y` varchar(20) DEFAULT NULL,
  `icon_space` varchar(20) DEFAULT NULL,
  `jpeg_quality` tinyint(2) DEFAULT NULL,
  `show_text_status` tinyint(2) DEFAULT NULL,
  `watermark_text` varchar(100) DEFAULT NULL,
  `text_alignment` varchar(50) DEFAULT NULL,
  `text_offset_X` varchar(20) DEFAULT NULL,
  `text_offset_Y` varchar(20) DEFAULT NULL,
  `text_spacing` varchar(20) DEFAULT NULL,
  `font_direction` varchar(20) DEFAULT NULL,
  `font_setting` varchar(20) DEFAULT NULL,
  `font_size` varchar(20) DEFAULT NULL,
  `font_color` varchar(20) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`watermark_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `complaint`
--

CREATE TABLE `complaint` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `BookingID` varchar(11) NOT NULL,
  `ClientID` bigint(11) NOT NULL,
  `CSRID` varchar(100) NOT NULL,
  `ComplaintType` varchar(1100) NOT NULL,
  `VehicleTypeID` int(11) NOT NULL,
  `ComplaintDescription` varchar(1000) NOT NULL,
  `Area` varchar(50) NOT NULL,
  `StatusID` varchar(100) NOT NULL,
  `ClosureDescription` varchar(500) NOT NULL,
  `JobNo` varchar(100) NOT NULL,
  `ComplainId` varchar(100) NOT NULL,
  `CallerName` varchar(120) NOT NULL,
  `TaxiType` varchar(100) NOT NULL,
  `Taxino` varchar(100) NOT NULL,
  `Franchise` varchar(200) NOT NULL,
  `Model` varchar(150) NOT NULL,
  `DriverName` varchar(200) NOT NULL,
  `PermitNo` varchar(120) NOT NULL,
  `DateT` datetime NOT NULL,
  `PickLocation` varchar(900) NOT NULL,
  `DropLocation` varchar(900) NOT NULL,
  `Alternateno` varchar(100) NOT NULL,
  `Modeofcomm` varchar(1230) NOT NULL,
  `Complaint_ref` varchar(150) NOT NULL,
  `ComplaintDate` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date` datetime NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `BookingID` (`BookingID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `contact`
--

CREATE TABLE `contact` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `mobile` varchar(25) NOT NULL,
  `company` varchar(255) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `message` text NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` enum('0','1','2') NOT NULL DEFAULT '0' COMMENT '1-Active,0-In-Active,2-Soft Delete',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `coupon_statistics`
--

CREATE TABLE `coupon_statistics` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `master_coupon_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `is_applied` int(11) DEFAULT NULL,
  `is_used` int(11) DEFAULT NULL,
  `device_type` varchar(255) DEFAULT NULL,
  `app_type` varchar(255) DEFAULT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `UserID` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `credit_card_charges`
--

CREATE TABLE `credit_card_charges` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_comb_id` int(11) NOT NULL,
  `credit_card_charge_type` varchar(10) NOT NULL,
  `charge_value` int(11) NOT NULL,
  `rounding_type_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `credit_card_details`
--

CREATE TABLE `credit_card_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `card_no` bigint(20) NOT NULL,
  `bank_name` varchar(100) NOT NULL,
  `card_type` varchar(15) NOT NULL,
  `expiry_on` date NOT NULL,
  `cvv_no` int(5) NOT NULL,
  `card_holder_name` varchar(100) NOT NULL,
  `card_front_image` varchar(100) NOT NULL,
  `card_back_image` varchar(100) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cron_schedule`
--

CREATE TABLE `cron_schedule` (
  `cron_schedule_id` int(10) NOT NULL AUTO_INCREMENT,
  `cron_id` int(10) NOT NULL,
  `role_id` int(10) NOT NULL,
  `day` varchar(20) NOT NULL COMMENT 'comma separated ',
  `before_after` tinyint(4) NOT NULL COMMENT '0 for before , 1 for after',
  `status` tinyint(4) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`cron_schedule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `cron_scheduler`
--

CREATE TABLE `cron_scheduler` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cron_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `email_template_id` int(11) DEFAULT NULL,
  `sms_template_id` int(11) DEFAULT NULL,
  `fcm_template_id` int(11) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `currency_converter`
--

CREATE TABLE `currency_converter` (
  `id` int(99) NOT NULL AUTO_INCREMENT,
  `base_unit` double NOT NULL,
  `base_currency` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `target_unit` double NOT NULL,
  `target_currency` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `target_currency_code` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT '1',
  `modified_by` int(11) NOT NULL DEFAULT '1',
  `status` int(11) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `currency_converter_logs`
--

CREATE TABLE `currency_converter_logs` (
  `id` int(99) NOT NULL AUTO_INCREMENT,
  `base_unit` double NOT NULL,
  `base_currency` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `target_unit` double NOT NULL,
  `target_currency` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `target_currency_code` varchar(99) COLLATE utf8_unicode_ci NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT '1',
  `modified_by` int(11) NOT NULL DEFAULT '1',
  `status` int(11) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `daywise_discount`
--

CREATE TABLE `daywise_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `week_days_id` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `daywise_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_value` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `daywise_discount_log`
--

CREATE TABLE `daywise_discount_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `week_days_id` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `daywise_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_value` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `debit_credit_note`
--

CREATE TABLE `debit_credit_note` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `booking_id` int(11) NOT NULL DEFAULT '0',
  `type_note` int(11) NOT NULL DEFAULT '0',
  `reason` text,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `debit_credit_note_logs`
--

CREATE TABLE `debit_credit_note_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `booking_id` int(11) NOT NULL DEFAULT '0',
  `type_note` int(11) NOT NULL DEFAULT '0',
  `reason` text,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `department_jobs`
--

CREATE TABLE `department_jobs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `dep_id` int(11) NOT NULL,
  `position_name` varchar(255) NOT NULL,
  `experience` varchar(255) NOT NULL,
  `location` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `job_description` text NOT NULL,
  `skills` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `device`
--

CREATE TABLE `device` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `unit_no` int(50) NOT NULL,
  `purchase_date` date NOT NULL,
  `activation_date` date NOT NULL,
  `sim_no` int(50) NOT NULL,
  `port` int(50) NOT NULL,
  `taxiNoId` varchar(50) NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `discount_rate`
--

CREATE TABLE `discount_rate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `discount_valid_from` date NOT NULL,
  `discount_valid_to` date NOT NULL,
  `discount_commission_rate_type` varchar(30) NOT NULL,
  `discount_comission_type` varchar(20) NOT NULL,
  `discount_commission_rate_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `discount_rate_log`
--

CREATE TABLE `discount_rate_log` (
  `id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `discount_valid_from` date NOT NULL,
  `discount_valid_to` date NOT NULL,
  `discount_commission_rate_type` varchar(30) NOT NULL,
  `discount_comission_type` varchar(20) NOT NULL,
  `discount_commission_rate_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `dispatch_location`
--

CREATE TABLE `dispatch_location` (
  `dispatch_location_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `base_comb_id` int(11) NOT NULL,
  `type_of_dispatch` tinyint(2) DEFAULT NULL COMMENT '1-point to point, 2- Garage to garage',
  `garage_type` tinyint(2) DEFAULT NULL COMMENT '1-Own,2-Company garage',
  `address` varchar(255) DEFAULT NULL,
  `city` int(11) DEFAULT NULL,
  `pincode` varchar(10) DEFAULT NULL,
  `latitude` varchar(50) DEFAULT NULL,
  `longitude` varchar(50) DEFAULT NULL,
  `created_date` date DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`dispatch_location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `dispose_call`
--

CREATE TABLE `dispose_call` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `AgentID` tinyint(4) NOT NULL,
  `CallerId` varchar(20) DEFAULT NULL,
  `CallerName` varchar(50) NOT NULL,
  `CallerTime` datetime NOT NULL,
  `CustType` varchar(50) DEFAULT NULL,
  `AlternateNo` varchar(20) DEFAULT NULL,
  `NoOfTaxi` tinyint(4) NOT NULL,
  `NoOfPax` tinyint(4) NOT NULL,
  `PickTime` datetime NOT NULL,
  `CarType` tinyint(4) NOT NULL,
  `Reason` varchar(100) DEFAULT NULL,
  `Remarks` varchar(500) DEFAULT NULL,
  `UpdateDateTime` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `distance_fare`
--

CREATE TABLE `distance_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL DEFAULT '0',
  `minimum_distance` int(11) NOT NULL DEFAULT '0',
  `per_km_charge` int(11) NOT NULL DEFAULT '0',
  `round_up_km` varchar(5) NOT NULL DEFAULT 'off',
  `accumulated_instance` varchar(5) NOT NULL DEFAULT 'off',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `distance_hour_fare`
--

CREATE TABLE `distance_hour_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL,
  `minimum_distance` int(11) NOT NULL,
  `minimum_hrs` int(11) NOT NULL,
  `per_km_charge` int(11) NOT NULL,
  `per_hr_charge` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `distance_upto_rate`
--

CREATE TABLE `distance_upto_rate` (
  `distance_upto_rate_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `km_upto` varchar(20) DEFAULT NULL,
  `rate_per_km` varchar(20) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`distance_upto_rate_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `distance_waiting_fare`
--

CREATE TABLE `distance_waiting_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL,
  `minimum_distance` int(11) NOT NULL,
  `per_km_charge` int(11) NOT NULL,
  `minutes_upto` varchar(5) NOT NULL,
  `fees` varchar(5) NOT NULL,
  `fees_per_minute` varchar(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver`
--

CREATE TABLE `driver` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `driving_license_no` varchar(50) DEFAULT NULL,
  `license_state` int(11) DEFAULT NULL,
  `pancard_no` varchar(20) DEFAULT NULL,
  `total_fleet_no` int(11) DEFAULT NULL,
  `is_functional` int(11) NOT NULL DEFAULT '1',
  `license_validity` varchar(15) DEFAULT NULL,
  `gps` varchar(50) DEFAULT NULL,
  `route_know` varchar(10) DEFAULT NULL,
  `zone` varchar(20) DEFAULT NULL,
  `status` int(11) DEFAULT '0',
  `created_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_cancellation_fare`
--

CREATE TABLE `driver_cancellation_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `master_driver_cancellation_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `from_date` datetime DEFAULT NULL,
  `to_date` datetime DEFAULT NULL,
  `days` varchar(10) NOT NULL DEFAULT '0',
  `hours` varchar(10) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_cancellation_fare_logs`
--

CREATE TABLE `driver_cancellation_fare_logs` (
  `log_id` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `booking_type` int(11) NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_location`
--

CREATE TABLE `driver_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `booking_id` int(11) DEFAULT '0',
  `start_latitude` varchar(100) DEFAULT NULL,
  `start_longitude` varchar(100) DEFAULT NULL,
  `current_latitude` varchar(100) DEFAULT '0',
  `current_longitude` varchar(100) DEFAULT '0',
  `start_time` datetime DEFAULT NULL,
  `datetime` timestamp NULL DEFAULT NULL,
  `current_time` datetime DEFAULT NULL,
  `time_stamp` varchar(100) DEFAULT NULL,
  `speed` varchar(20) DEFAULT NULL,
  `accuracy` varchar(20) DEFAULT NULL,
  `provider` varchar(255) DEFAULT NULL,
  `distance` varchar(200) DEFAULT NULL,
  `duration` time NOT NULL DEFAULT '00:00:00',
  `WaitingTime` time DEFAULT '00:00:00',
  `pre_Waiting_time` time NOT NULL,
  `booking_status` int(11) DEFAULT NULL,
  `tripRunnStatus` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_location_29-feb`
--

CREATE TABLE `driver_location_29-feb` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `booking_id` int(11) DEFAULT '0',
  `start_latitude` varchar(100) DEFAULT NULL,
  `start_longitude` varchar(100) DEFAULT NULL,
  `current_latitude` varchar(100) DEFAULT '0',
  `current_longitude` varchar(100) DEFAULT '0',
  `start_time` datetime DEFAULT NULL,
  `datetime` timestamp NULL DEFAULT NULL,
  `distance` varchar(200) DEFAULT NULL,
  `duration` time NOT NULL DEFAULT '00:00:00',
  `WaitingTime` time DEFAULT '00:00:00',
  `pre_Waiting_time` time NOT NULL,
  `booking_status` int(11) DEFAULT NULL,
  `tripRunnStatus` varchar(250) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_payment`
--

CREATE TABLE `driver_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `driver_id` int(11) NOT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `payment_ref_no` varchar(200) DEFAULT NULL,
  `deposit_date` date DEFAULT NULL,
  `transaction_mode` varchar(50) DEFAULT NULL,
  `fileupload` varchar(100) DEFAULT NULL,
  `trans` varchar(100) DEFAULT NULL,
  `chequeno` varchar(50) DEFAULT NULL,
  `partner_bank` varchar(255) DEFAULT NULL,
  `amount` double(10,2) NOT NULL,
  `deposit_bank` varchar(100) DEFAULT NULL,
  `deposit_branch` varchar(100) DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-Pending,1-Approved,2-Audit',
  `user_account` int(11) DEFAULT NULL,
  `date` timestamp NULL DEFAULT NULL,
  `credit_date` varchar(50) DEFAULT NULL,
  `credit_amount` varchar(100) DEFAULT NULL,
  `admin_remarks` varchar(255) DEFAULT NULL,
  `audit_status` int(11) DEFAULT NULL,
  `audit_date` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `driver_id` (`driver_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_points`
--

CREATE TABLE `driver_points` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `login_status` int(11) NOT NULL,
  `login_time` datetime NOT NULL,
  `logout_time` datetime NOT NULL,
  `valid_status` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `booking_status` int(11) NOT NULL,
  `prev_booking_done` datetime NOT NULL,
  `breakdown_status` int(11) NOT NULL,
  `current_latitude` varchar(15) NOT NULL,
  `current_longitude` varchar(15) NOT NULL,
  `total_booking_operated` int(11) NOT NULL,
  `login_point` int(11) NOT NULL,
  `free_credit_point` int(11) NOT NULL,
  `distance_point` int(11) NOT NULL,
  `idle_point` int(11) NOT NULL,
  `booking_operated_point` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `driver_rating`
--

CREATE TABLE `driver_rating` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `DID` int(11) NOT NULL,
  `BookingId` int(11) NOT NULL,
  `rating` int(11) NOT NULL,
  `comment_desc` text NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` varchar(10) NOT NULL,
  PRIMARY KEY (`ID`),
  KEY `DID` (`DID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 CHECKSUM=1;

--
-- Table structure for table `driver_status`
--

CREATE TABLE `driver_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `booking_id` int(11) NOT NULL DEFAULT '0',
  `driver_status` int(11) NOT NULL DEFAULT '0',
  `started_time` datetime DEFAULT NULL,
  `estimated_end_time` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `driver_transaction`
--

CREATE TABLE `driver_transaction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) DEFAULT NULL,
  `amount` int(11) DEFAULT NULL,
  `basic_tax_amount` int(11) DEFAULT NULL,
  `currentbalance` int(11) DEFAULT '0',
  `cash_collection` double(5,2) NOT NULL DEFAULT '0.00' COMMENT 'Cash Collection By Driver',
  `status` varchar(50) DEFAULT NULL,
  `booking_ref` text,
  `reason` varchar(100) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `drivers_cancellation_fare`
--

CREATE TABLE `drivers_cancellation_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `booking_type` int(11) NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `from_date` datetime DEFAULT NULL,
  `to_date` datetime DEFAULT NULL,
  `days` varchar(10) NOT NULL DEFAULT '0',
  `hours` varchar(10) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `drop_down_of_nos`
--

CREATE TABLE `drop_down_of_nos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nos` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `lang` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `early_booking_discount`
--

CREATE TABLE `early_booking_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `early_days` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `early_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `early_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `early_booking_discount_log`
--

CREATE TABLE `early_booking_discount_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `early_days` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `early_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `early_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `email_history`
--

CREATE TABLE `email_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `mesg` longtext NOT NULL,
  `status` int(11) NOT NULL,
  `time` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `UID` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `email_templates`
--

CREATE TABLE `email_templates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL,
  `img` text NOT NULL,
  `header_text` text,
  `description` text NOT NULL,
  `footer_text` text,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  `is_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `email_templates1`
--

CREATE TABLE `email_templates1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `name` varchar(25) NOT NULL,
  `type` varchar(30) NOT NULL,
  `img` varchar(25) NOT NULL,
  `header_text` text CHARACTER SET utf8 NOT NULL,
  `description` text NOT NULL,
  `footer_text` text NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  `is_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `email_templatess`
--

CREATE TABLE `email_templatess` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(1000) NOT NULL,
  `code` varchar(1000) NOT NULL,
  `subject` varchar(1000) NOT NULL,
  `body` longtext NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `enquiry`
--

CREATE TABLE `enquiry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_ref_no` varchar(255) DEFAULT NULL,
  `user_type` int(11) NOT NULL DEFAULT '0',
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  `mobile_prefix` varchar(10) DEFAULT NULL,
  `mobile` varchar(50) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `address` text,
  `city` int(11) NOT NULL DEFAULT '0',
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `module_type` int(11) NOT NULL DEFAULT '0',
  `enquiry_type` int(11) NOT NULL DEFAULT '0',
  `travel_date` datetime DEFAULT NULL,
  `remarks` text,
  `enquiry_closed_date` datetime DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '0',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `enquiry_followup_status`
--

CREATE TABLE `enquiry_followup_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `enquiry_assigned_date` datetime DEFAULT NULL,
  `remarks` text,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '0',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `enquiry_old`
--

CREATE TABLE `enquiry_old` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `CallerId` varchar(100) NOT NULL,
  `CallerName` varchar(200) NOT NULL,
  `ContactNo` varchar(50) NOT NULL,
  `EmailId` varchar(140) NOT NULL,
  `City` varchar(100) NOT NULL,
  `Locality` varchar(100) NOT NULL,
  `EnqType` varchar(1000) NOT NULL,
  `Address` varchar(1200) NOT NULL,
  `Message` varchar(3000) NOT NULL,
  `Contracted` varchar(100) NOT NULL,
  `CSRID` varchar(100) NOT NULL,
  `EnquiryDate` datetime NOT NULL,
  `Status` varchar(50) NOT NULL,
  `ClosedDate` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `Enquiry_ref` varchar(50) DEFAULT NULL,
  `Enqtype1` varchar(1000) NOT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `enquiry_type`
--

CREATE TABLE `enquiry_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_type` varchar(255) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '0',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `enquiry_type_old`
--

CREATE TABLE `enquiry_type_old` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `enquiry_type` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_on` datetime NOT NULL,
  `status` varchar(100) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_on` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `experience`
--

CREATE TABLE `experience` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `exp_name` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `extras`
--

CREATE TABLE `extras` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `extras_master_id` varchar(100) NOT NULL,
  `extra_value_type` varchar(10) DEFAULT NULL COMMENT '%, Rs',
  `extra_value` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `fare_log`
--

CREATE TABLE `fare_log` (
  `fare_log_id` int(11) NOT NULL AUTO_INCREMENT,
  `table_name` varchar(100) NOT NULL,
  `field_name` varchar(100) NOT NULL,
  `old_value` varchar(100) NOT NULL,
  `new_value` varchar(100) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_date` datetime NOT NULL,
  `ip` varchar(11) NOT NULL,
  PRIMARY KEY (`fare_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `fare_rate_type`
--

CREATE TABLE `fare_rate_type` (
  `rate_type_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `rate` int(11) NOT NULL DEFAULT '1' COMMENT '1-Net,2-commission',
  `rate_type` varchar(10) NOT NULL,
  `rate_value` float NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`rate_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Fare rate type (Net Rate or Comimssion Rate)';

--
-- Table structure for table `favorite_addresses`
--

CREATE TABLE `favorite_addresses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Ref_Name` varchar(255) NOT NULL,
  `Bookign_ID` int(11) NOT NULL,
  `ClientId` int(11) NOT NULL,
  `Address_ID` int(11) NOT NULL,
  `Status` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `fcm_template`
--

CREATE TABLE `fcm_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `message` text,
  `msg_type` text,
  `msg_sku` text,
  `variables` text,
  `text_limit` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT NULL,
  `status_done` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Contains SMS template';

--
-- Table structure for table `feedback`
--

CREATE TABLE `feedback` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `reservation` varchar(30) NOT NULL,
  `web_booking_rate` varchar(15) NOT NULL,
  `web_confirm_rate` varchar(15) NOT NULL,
  `web_service_rate` varchar(15) NOT NULL,
  `android_app_rate` varchar(15) NOT NULL,
  `android_booking_rate` varchar(15) NOT NULL,
  `android_confirm_rate` varchar(15) NOT NULL,
  `android_service_rate` varchar(15) NOT NULL,
  `call_book_rate` varchar(15) NOT NULL,
  `call_agent_rate` varchar(15) NOT NULL,
  `call_instruction_rate` varchar(15) NOT NULL,
  `call_confirmation_rate` varchar(15) NOT NULL,
  `call_services_rate` varchar(15) NOT NULL,
  `vehicle_rate` varchar(15) NOT NULL,
  `requested_rate` varchar(15) NOT NULL,
  `instruction_follow_rate` varchar(15) NOT NULL,
  `vehicle_condition` varchar(15) NOT NULL,
  `aircondition_effective_rate` varchar(15) NOT NULL,
  `cleanness_rate` varchar(15) NOT NULL,
  `grooming_rate` varchar(15) NOT NULL,
  `accuracy_rate` varchar(15) NOT NULL,
  `invoice_time_rate` varchar(15) NOT NULL,
  `receivingInv_rate` varchar(15) NOT NULL,
  `created_date` date NOT NULL,
  `ip` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `UserId` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `feedback_for_user_app`
--

CREATE TABLE `feedback_for_user_app` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `UserId` int(11) NOT NULL,
  `Helpful` float NOT NULL,
  `EasyToUse` float NOT NULL,
  `Design` float NOT NULL,
  `Feedback` text NOT NULL,
  `AppType` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `UserId` (`UserId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `fix_route`
--

CREATE TABLE `fix_route` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `frequent_location` varchar(30) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `guide_details`
--

CREATE TABLE `guide_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `guide_id` int(11) NOT NULL,
  `company_id` int(11) NOT NULL,
  `first_name` varchar(255) NOT NULL,
  `last_name` varchar(255) NOT NULL,
  `father_name` varchar(255) NOT NULL,
  `email_id` varchar(100) NOT NULL,
  `email_id_verified` enum('0','1') NOT NULL DEFAULT '0',
  `phone_no` varchar(15) NOT NULL,
  `phone_no_verified` enum('0','1') NOT NULL DEFAULT '0',
  `external_ref_name` varchar(255) NOT NULL,
  `dob` date NOT NULL,
  `gender` enum('Male','Female') CHARACTER SET latin2 COLLATE latin2_bin NOT NULL DEFAULT 'Male',
  `address` text NOT NULL,
  `country` int(11) NOT NULL,
  `state` int(11) NOT NULL,
  `city` int(11) NOT NULL,
  `pin_code` varchar(10) NOT NULL,
  `kyc` varchar(100) NOT NULL,
  `kyc_proof` text NOT NULL,
  `photo` text NOT NULL,
  `photo_verify` int(11) NOT NULL,
  `duty_type_pref` varchar(100) NOT NULL,
  `payment_type_id` int(11) NOT NULL,
  `license_state` varchar(50) NOT NULL,
  `license_no` varchar(50) NOT NULL,
  `license_proof` text NOT NULL,
  `license_validity` varchar(20) NOT NULL,
  `pan_card_no` varchar(20) NOT NULL,
  `pancard_proof` text NOT NULL,
  `police_proof` text NOT NULL,
  `audit_proof` text NOT NULL,
  `pref_city` varchar(100) NOT NULL,
  `route_knowledge` varchar(10) NOT NULL,
  `pref_zone` varchar(10) NOT NULL,
  `week_off` varchar(50) NOT NULL,
  `education_qualification` text NOT NULL,
  `guide_qualification` text NOT NULL,
  `theme` int(11) NOT NULL,
  `experience` text NOT NULL,
  `pref_timing` varchar(50) NOT NULL,
  `membership_id` int(11) NOT NULL,
  `about_guide` text NOT NULL,
  `is_active` int(11) NOT NULL DEFAULT '5',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `guide_fare`
--

CREATE TABLE `guide_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(4) NOT NULL,
  `state_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `booking_type` varchar(5) NOT NULL,
  `s_id` int(11) NOT NULL,
  `nationality` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `guide_hourly_fare`
--

CREATE TABLE `guide_hourly_fare` (
  `giude_hourly_fare_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_comb_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL,
  `minimum_hrs` int(11) NOT NULL,
  `per_hr_charge` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`giude_hourly_fare_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `guide_language`
--

CREATE TABLE `guide_language` (
  `guide_lang_id` int(11) NOT NULL AUTO_INCREMENT,
  `guide_id` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`guide_lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `guide_local_package`
--

CREATE TABLE `guide_local_package` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package` varchar(255) DEFAULT NULL,
  `master_pkg_id` int(11) DEFAULT '101',
  `sub_pkg_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  `hrs` int(11) NOT NULL,
  `price` int(11) NOT NULL DEFAULT '0',
  `status` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_board_room`
--

CREATE TABLE `hotel_board_room` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `capacity` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_board_room_images`
--

CREATE TABLE `hotel_board_room_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `board_room_id` int(11) NOT NULL,
  `path` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_conference_hall`
--

CREATE TABLE `hotel_conference_hall` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `capacity` varchar(25) NOT NULL,
  `u_shaped` varchar(25) NOT NULL,
  `theater_shaped` varchar(25) NOT NULL,
  `round_table` varchar(25) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_conference_hall_images`
--

CREATE TABLE `hotel_conference_hall_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `conference_hall_id` int(11) NOT NULL,
  `path` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_detail`
--

CREATE TABLE `hotel_detail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) DEFAULT NULL,
  `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `property_type` int(11) NOT NULL,
  `hotel_category` int(11) DEFAULT NULL,
  `logo` text COLLATE utf8_unicode_ci,
  `url` text COLLATE utf8_unicode_ci NOT NULL,
  `city_id` int(11) DEFAULT NULL,
  `location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `featured` int(11) NOT NULL DEFAULT '0',
  `preferred` int(11) DEFAULT '0',
  `total_floor` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_rooms_single` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_rooms_double` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_rooms_twin` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_rooms_disabled` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `check_in_time` time NOT NULL,
  `check_out_time` time NOT NULL,
  `total_conference_halls` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_board_rooms` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `total_party_lawns` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `interconnected_total_rooms` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
  `currency` int(11) DEFAULT NULL,
  `country` int(11) DEFAULT NULL,
  `payment_description` text COLLATE utf8_unicode_ci,
  `telephone` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fax` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `building_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `building_number` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8_unicode_ci,
  `postal_code` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `longitude` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sales_person_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sales_person_landline_no` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `sales_person_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `sales_person_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `reservation_person_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `reservation_person_landline_no` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  `reservation_person_mobile_no` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  `reservation_person_email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `weekend` int(11) DEFAULT NULL,
  `realted_tours` text COLLATE utf8_unicode_ci,
  `brochure_title` text COLLATE utf8_unicode_ci,
  `brochure_description` text COLLATE utf8_unicode_ci,
  `meta_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `allocation_from_date` date DEFAULT NULL,
  `allocation_to_date` date DEFAULT NULL,
  `allocation_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `allocation_cut_off_days` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
  `allocation_room_category` int(11) DEFAULT NULL,
  `available_start_date` date DEFAULT NULL,
  `available_end_date` date DEFAULT NULL,
  `feature_google_map` text COLLATE utf8_unicode_ci,
  `hotel_highlights` text COLLATE utf8_unicode_ci,
  `payment_structure_id` int(11) DEFAULT NULL,
  `document_id` int(11) DEFAULT NULL,
  `cancellation_policy` int(11) DEFAULT NULL,
  `refund_policy` int(11) DEFAULT NULL,
  `term_policy` int(11) DEFAULT NULL,
  `payment_structure_content` text COLLATE utf8_unicode_ci,
  `documentation_content` text COLLATE utf8_unicode_ci,
  `cancellation_policy_content` text COLLATE utf8_unicode_ci,
  `refund_policy_content` text COLLATE utf8_unicode_ci,
  `term_policy_content` text COLLATE utf8_unicode_ci,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `hotel_extra_info`
--

CREATE TABLE `hotel_extra_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `extra_info_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_facility`
--

CREATE TABLE `hotel_facility` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `facility_name_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_free_offers`
--

CREATE TABLE `hotel_free_offers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(50) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `package_name` varchar(255) NOT NULL,
  `rooms` tinyint(2) NOT NULL DEFAULT '0',
  `nights` tinyint(2) NOT NULL DEFAULT '0',
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_free_offers_log`
--

CREATE TABLE `hotel_free_offers_log` (
  `id` int(11) NOT NULL,
  `type` varchar(50) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `package_name` varchar(255) NOT NULL,
  `rooms` tinyint(2) NOT NULL DEFAULT '0',
  `nights` tinyint(2) NOT NULL DEFAULT '0',
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_invoice`
--

CREATE TABLE `hotel_invoice` (
  `invoice_id` int(10) NOT NULL AUTO_INCREMENT,
  `hotel_code` varchar(100) NOT NULL,
  `hotel_name` varchar(100) NOT NULL,
  `currency` varchar(30) NOT NULL,
  `tbo_invoice` varchar(30) NOT NULL,
  `no_of_rooms` varchar(10) NOT NULL,
  `total_room_price` varchar(20) NOT NULL,
  `ip` varchar(30) NOT NULL,
  `hotel_booking_status` varchar(20) NOT NULL,
  `ChildCharge` varchar(10) NOT NULL,
  `OtherCharges` varchar(20) NOT NULL,
  `Discount` varchar(20) NOT NULL,
  `PublishedPrice` varchar(15) NOT NULL,
  `PublishedPriceRoundedOff` varchar(15) NOT NULL,
  `confirmation_number` varchar(50) NOT NULL,
  `booking_ref_no` varchar(100) NOT NULL,
  `booking_id` varchar(50) NOT NULL,
  `check_in_date` date NOT NULL,
  `check_out_date` date NOT NULL,
  `nights_stay` varchar(20) NOT NULL,
  `is_paid` varchar(20) NOT NULL,
  `is_paid_at` date NOT NULL,
  `payment_type` varchar(20) NOT NULL,
  `total_tax_price` varchar(15) NOT NULL,
  `fees` varchar(15) NOT NULL,
  `is_voucher_booking` varchar(15) NOT NULL,
  `cancelation_date` date NOT NULL,
  `cgst_tax` varchar(10) NOT NULL,
  `igst_tax` varchar(10) NOT NULL,
  `sgst_tax` varchar(10) NOT NULL,
  `estimated_price_before_markup` varchar(20) NOT NULL,
  `markup_type` varchar(50) NOT NULL,
  `markup_value` varchar(15) NOT NULL,
  `markup_price` varchar(15) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` varchar(50) NOT NULL,
  `modified_by` varchar(50) NOT NULL,
  `modified_date` date NOT NULL,
  PRIMARY KEY (`invoice_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `hotel_location_map_distance`
--

CREATE TABLE `hotel_location_map_distance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `location_type_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `distance` varchar(5) NOT NULL,
  `walk` varchar(5) NOT NULL,
  `public_transport` varchar(5) NOT NULL,
  `by_car` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_party_lawn`
--

CREATE TABLE `hotel_party_lawn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `capacity` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_party_lawn_images`
--

CREATE TABLE `hotel_party_lawn_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `party_lawn_id` int(11) NOT NULL,
  `path` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_related`
--

CREATE TABLE `hotel_related` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `hotel_id2` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_cancellation_fees`
--

CREATE TABLE `hotel_room_cancellation_fees` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `vendor_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `rate_type` varchar(50) NOT NULL,
  `rate_type_id` int(11) NOT NULL DEFAULT '0',
  `rate_name_id` int(11) NOT NULL,
  `cancel_date_from` date NOT NULL,
  `cancel_date_to` date NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_cancellation_fees_logs`
--

CREATE TABLE `hotel_room_cancellation_fees_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `vendor_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `rate_type` varchar(50) NOT NULL,
  `rate_type_id` int(11) NOT NULL DEFAULT '0',
  `rate_name_id` int(11) NOT NULL,
  `cancel_date_from` date NOT NULL,
  `cancel_date_to` date NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_extra_meal_rate`
--

CREATE TABLE `hotel_room_extra_meal_rate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `sgl_ext_adult_breakfast_rate` varchar(5) DEFAULT NULL,
  `dbl_ext_adult_lunch_rate` varchar(5) DEFAULT NULL,
  `tbl_ext_adult_dinner_rate` varchar(5) DEFAULT NULL,
  `child2to12_ext_breakfast_rate` varchar(5) DEFAULT NULL,
  `child12to16_ext_lunch_rate` varchar(5) DEFAULT NULL,
  `extra_with_bed_ext_dinner_rate` varchar(5) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_extra_meal_rate_log`
--

CREATE TABLE `hotel_room_extra_meal_rate_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `sgl_ext_adult_breakfast_rate` varchar(5) DEFAULT NULL,
  `dbl_ext_adult_lunch_rate` varchar(5) DEFAULT NULL,
  `tbl_ext_adult_dinner_rate` varchar(5) DEFAULT NULL,
  `child2to12_ext_breakfast_rate` varchar(5) DEFAULT NULL,
  `child12to16_ext_lunch_rate` varchar(5) DEFAULT NULL,
  `extra_with_bed_ext_dinner_rate` varchar(5) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_facility`
--

CREATE TABLE `hotel_room_facility` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `room_id` int(11) NOT NULL,
  `facility_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_facilty`
--

CREATE TABLE `hotel_room_facilty` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `room_id` int(11) NOT NULL,
  `facility_type_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_images`
--

CREATE TABLE `hotel_room_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `room_id` int(11) NOT NULL,
  `image_type` varchar(20) DEFAULT NULL,
  `image` text,
  `image_approval_status` tinyint(2) NOT NULL DEFAULT '1',
  `image_default_status` tinyint(2) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_promotion`
--

CREATE TABLE `hotel_room_promotion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `room_id` int(11) NOT NULL,
  `name` varchar(5) NOT NULL,
  `type` int(11) NOT NULL,
  `value` varchar(5) NOT NULL,
  `staying_days` varchar(5) NOT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_rate`
--

CREATE TABLE `hotel_room_rate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `vendor_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `rate_type` varchar(50) NOT NULL,
  `rate_type_id` int(11) NOT NULL DEFAULT '0',
  `rate_name_id` int(11) NOT NULL,
  `season_id` int(11) NOT NULL,
  `week_days` text NOT NULL,
  `package_name` varchar(255) DEFAULT NULL,
  `minimum_nights` varchar(5) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `netrate_commissionrate` varchar(30) NOT NULL,
  `commission_rate_type` varchar(20) DEFAULT NULL,
  `commission_rate_value` varchar(10) DEFAULT NULL,
  `service_charge` varchar(30) NOT NULL,
  `service_charge_type` varchar(20) NOT NULL,
  `service_charge_value` varchar(10) NOT NULL,
  `discount_netrate_commissionrate` varchar(30) NOT NULL,
  `discount_commission_rate_type` varchar(20) NOT NULL,
  `discount_commission_rate_value` varchar(20) NOT NULL,
  `discount_valid_from` varchar(50) DEFAULT NULL,
  `discount_valid_to` varchar(50) DEFAULT NULL,
  `tax_charge` varchar(30) NOT NULL,
  `tax_type` varchar(10) NOT NULL,
  `sgst` varchar(10) NOT NULL,
  `cgst` varchar(10) NOT NULL,
  `igst` varchar(10) NOT NULL,
  `description` text NOT NULL,
  `promotion_plan` text,
  `price_plan_name` varchar(255) DEFAULT NULL,
  `stay_more_status` tinyint(2) NOT NULL DEFAULT '0',
  `last_min_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `early_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `kids_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `night_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `room_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_rate_ext`
--

CREATE TABLE `hotel_room_rate_ext` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `meal_plan_type_id` int(11) NOT NULL,
  `sgl_rate` varchar(5) DEFAULT NULL,
  `dbl_rate` varchar(5) DEFAULT NULL,
  `tbl_rate` varchar(5) DEFAULT NULL,
  `child_rate` varchar(5) DEFAULT NULL,
  `child1_rate` varchar(5) DEFAULT NULL,
  `extra_bed_rate` varchar(5) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_rate_ext1`
--

CREATE TABLE `hotel_room_rate_ext1` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `meal_plan_type_id` int(11) NOT NULL,
  `sgl_rate_ep` varchar(5) DEFAULT NULL,
  `dbl_rate_ep` varchar(5) DEFAULT NULL,
  `tbl_rate_ep` varchar(5) DEFAULT NULL,
  `child_rate_ep` varchar(5) DEFAULT NULL,
  `child1_rate_ep` varchar(5) DEFAULT NULL,
  `extra_bed_rate_ep` varchar(5) DEFAULT NULL,
  `sgl_net_tax_per` varchar(5) NOT NULL,
  `dbl_net_tax_per` varchar(5) NOT NULL,
  `tbl_net_tax_per` varchar(5) NOT NULL,
  `child_net_tax_per` varchar(5) NOT NULL,
  `child1_net_tax_per` varchar(5) NOT NULL,
  `extra_bed_net_tax_per` varchar(5) NOT NULL,
  `sgl_pub_rate` varchar(5) NOT NULL,
  `dbl_pub_rate` varchar(5) NOT NULL,
  `tbl_pub_rate` varchar(5) NOT NULL,
  `child_pub_rate` varchar(5) NOT NULL,
  `child1_pub_rate` varchar(5) NOT NULL,
  `extra_bed_pub_rate` varchar(5) NOT NULL,
  `sgl_pub_tax_per` varchar(5) NOT NULL,
  `dbl_pub_tax_per` varchar(5) NOT NULL,
  `tbl_pub_tax_per` varchar(5) NOT NULL,
  `child_pub_tax_per` varchar(5) NOT NULL,
  `child1_pub_tax_per` varchar(5) NOT NULL,
  `extra_bed_pub_tax_per` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_rate_ext_log`
--

CREATE TABLE `hotel_room_rate_ext_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `meal_plan_type_id` int(11) NOT NULL,
  `sgl_rate` varchar(5) DEFAULT NULL,
  `dbl_rate` varchar(5) DEFAULT NULL,
  `tbl_rate` varchar(5) DEFAULT NULL,
  `child_rate` varchar(5) DEFAULT NULL,
  `child1_rate` varchar(5) DEFAULT NULL,
  `extra_bed_rate` varchar(5) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_room_rate_log`
--

CREATE TABLE `hotel_room_rate_log` (
  `id` int(11) NOT NULL,
  `hotel_id` int(11) NOT NULL,
  `room_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `vendor_type` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `rate_type` varchar(50) NOT NULL,
  `rate_type_id` int(11) NOT NULL DEFAULT '0',
  `rate_name_id` int(11) NOT NULL,
  `season_id` int(11) NOT NULL,
  `week_days` text NOT NULL,
  `package_name` varchar(255) DEFAULT NULL,
  `minimum_nights` varchar(5) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `netrate_commissionrate` varchar(30) NOT NULL,
  `commission_rate_type` varchar(20) DEFAULT NULL,
  `commission_rate_value` varchar(10) DEFAULT NULL,
  `service_charge` varchar(30) NOT NULL,
  `service_charge_type` varchar(20) NOT NULL,
  `service_charge_value` text NOT NULL,
  `discount_netrate_commissionrate` varchar(30) NOT NULL,
  `discount_commission_rate_type` varchar(20) NOT NULL,
  `discount_commission_rate_value` varchar(20) NOT NULL,
  `discount_valid_from` varchar(50) DEFAULT NULL,
  `discount_valid_to` varchar(50) DEFAULT NULL,
  `tax_charge` varchar(30) NOT NULL,
  `tax_type` varchar(10) NOT NULL,
  `sgst` varchar(10) NOT NULL,
  `cgst` varchar(10) NOT NULL,
  `igst` varchar(10) NOT NULL,
  `description` text NOT NULL,
  `promotion_plan` text,
  `price_plan_name` varchar(255) DEFAULT NULL,
  `stay_more_status` tinyint(2) NOT NULL DEFAULT '0',
  `last_min_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `early_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `kids_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `night_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `room_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_rooms`
--

CREATE TABLE `hotel_rooms` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `room_type_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `thumb` text,
  `minimum_staying` varchar(5) NOT NULL,
  `maximum_adult` varchar(5) NOT NULL,
  `maximum_children` varchar(5) NOT NULL,
  `extra_bed` varchar(5) DEFAULT NULL,
  `deal` varchar(255) DEFAULT NULL,
  `description` text NOT NULL,
  `vendor_type` int(11) DEFAULT NULL,
  `vendor_name` varchar(255) DEFAULT NULL,
  `valid_from` date DEFAULT NULL,
  `valid_to` date DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_sports_recreation`
--

CREATE TABLE `hotel_sports_recreation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `sports_recreation_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_tax`
--

CREATE TABLE `hotel_tax` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `tax_type` varchar(10) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `sgst` float DEFAULT NULL,
  `cgst` float DEFAULT NULL,
  `igst` float DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_tax_log`
--

CREATE TABLE `hotel_tax_log` (
  `id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `tax_type` varchar(10) DEFAULT NULL,
  `valid_from` date NOT NULL,
  `valid_to` date NOT NULL,
  `sgst` float DEFAULT NULL,
  `cgst` float DEFAULT NULL,
  `igst` float DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_to_features`
--

CREATE TABLE `hotel_to_features` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `feature_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_to_payment_options`
--

CREATE TABLE `hotel_to_payment_options` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hotel_id` int(11) NOT NULL,
  `payment_option_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hotel_vendor`
--

CREATE TABLE `hotel_vendor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) DEFAULT NULL,
  `hotel_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `hourly_fare`
--

CREATE TABLE `hourly_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `minimum_charge` int(11) NOT NULL,
  `minimum_hrs` int(11) NOT NULL,
  `per_hr_charge` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `hours`
--

CREATE TABLE `hours` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `hours` varchar(50) NOT NULL,
  `lang` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `inclusion`
--

CREATE TABLE `inclusion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `inter_city_route_package`
--

CREATE TABLE `inter_city_route_package` (
  `route_id` int(11) NOT NULL AUTO_INCREMENT,
  `from_city` varchar(100) NOT NULL,
  `to_city` varchar(100) NOT NULL,
  `via_city` text NOT NULL,
  `economy_rate` int(11) NOT NULL,
  `sedan_rate` int(11) NOT NULL,
  `prime_rate` int(11) NOT NULL,
  `fix_km` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`route_id`),
  KEY `from_city` (`from_city`,`to_city`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `ivr_recording_detail`
--

CREATE TABLE `ivr_recording_detail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `CustMobile` varchar(255) NOT NULL,
  `CustRecordFileName` varchar(255) NOT NULL,
  `CustCallRefrence` varchar(50) NOT NULL,
  `custDatetime` datetime NOT NULL,
  `callTime` varchar(50) NOT NULL,
  `AgentRemarks` varchar(255) NOT NULL,
  `CallTransferToAgent` varchar(255) NOT NULL,
  `CallFreeResponse` varchar(255) NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `last_minute_discount`
--

CREATE TABLE `last_minute_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `hours` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `last_minute_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `last_minute_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `last_minute_discount_log`
--

CREATE TABLE `last_minute_discount_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `hours` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `last_minute_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `last_minute_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `local_package`
--

CREATE TABLE `local_package` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type` int(11) NOT NULL,
  `booking_mode` int(11) NOT NULL COMMENT 'Distance,Distance+Hour,Distance+Waiting,Hour',
  `name` varchar(255) DEFAULT NULL,
  `hrs` int(11) NOT NULL,
  `km` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `local_package_fare`
--

CREATE TABLE `local_package_fare` (
  `local_pkg_fare_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `local_pkg_id` int(11) NOT NULL,
  `local_pkg_fare` varchar(50) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`local_pkg_fare_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `log_in_log`
--

CREATE TABLE `log_in_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userId` int(11) NOT NULL,
  `status` varchar(200) DEFAULT NULL,
  `expires` bigint(11) DEFAULT NULL,
  `callfrom` varchar(10) DEFAULT NULL,
  `login_time` datetime NOT NULL,
  `logout_time` datetime DEFAULT NULL,
  `login_date` date DEFAULT NULL,
  `logout_date` date DEFAULT NULL,
  `login_diff` time DEFAULT NULL,
  `lat` varchar(100) DEFAULT NULL,
  `log` varchar(100) DEFAULT NULL,
  `login_location` text,
  `logout_location` text,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `userId` (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `login`
--

CREATE TABLE `login` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(121) NOT NULL,
  `password` varchar(121) NOT NULL,
  `Full_Name` varchar(255) NOT NULL,
  `Mobile` varchar(255) NOT NULL,
  `lastlogintime` datetime NOT NULL,
  `breaktime` datetime NOT NULL,
  `total_break` datetime NOT NULL,
  `Admin` int(11) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `Dept_name` varchar(100) NOT NULL,
  `Agent_type_IVR` varchar(50) DEFAULT NULL,
  `Created_date` datetime NOT NULL,
  `approved_date` datetime NOT NULL,
  `approved_by` varchar(100) NOT NULL,
  `status` varchar(110) NOT NULL,
  `City` varchar(100) NOT NULL,
  `Address` text NOT NULL,
  `QuickCallID` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `login_ivr`
--

CREATE TABLE `login_ivr` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `QuickID` int(11) DEFAULT NULL,
  `AgentID` int(11) DEFAULT NULL,
  `AgentName` varchar(50) DEFAULT NULL,
  `CompaignName` varchar(50) DEFAULT NULL,
  `CreatedAt` datetime DEFAULT NULL,
  `Is_Active` varchar(50) DEFAULT NULL,
  UNIQUE KEY `Id` (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `login_old(notused)`
--

CREATE TABLE `login_old(notused)` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(121) NOT NULL,
  `password` varchar(121) NOT NULL,
  `Full_Name` varchar(255) NOT NULL,
  `Mobile` varchar(255) NOT NULL,
  `lastlogintime` datetime NOT NULL,
  `breaktime` datetime NOT NULL,
  `total_break` datetime NOT NULL,
  `Admin` int(11) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `Dept_name` varchar(100) NOT NULL,
  `Agent_type_IVR` varchar(50) DEFAULT NULL,
  `Created_date` datetime NOT NULL,
  `approved_date` datetime NOT NULL,
  `approved_by` varchar(100) NOT NULL,
  `status` varchar(110) NOT NULL,
  `City` varchar(100) NOT NULL,
  `Address` text NOT NULL,
  `QuickCallID` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_address`
--

CREATE TABLE `master_address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `latitude` varchar(255) DEFAULT '0.0',
  `longitude` varchar(255) DEFAULT '0.0',
  `address` varchar(500) DEFAULT 'Not Available',
  `zone` varchar(50) DEFAULT 'Not Available',
  `establishment_name` varchar(255) DEFAULT NULL,
  `is_hotel` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `address` (`address`)
) ENGINE=MyISAM AUTO_INCREMENT=884 DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_airport_railway`
--

CREATE TABLE `master_airport_railway` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `state_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `airport_railway_name` varchar(255) DEFAULT NULL,
  `meeting_point` varchar(255) NOT NULL,
  `latitude` varchar(255) DEFAULT '0.0',
  `longitude` varchar(255) DEFAULT '0.0',
  `zone` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_amenities`
--

CREATE TABLE `master_amenities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amenities_name` varchar(100) NOT NULL,
  `amenities_icon` varchar(255) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  `created_date` datetime NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_booking_type`
--

CREATE TABLE `master_booking_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type` varchar(255) NOT NULL,
  `menu_order` int(11) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_budget`
--

CREATE TABLE `master_budget` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `master_cancellation`
--

CREATE TABLE `master_cancellation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `order_by` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_cancellation_policy`
--

CREATE TABLE `master_cancellation_policy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_city`
--

CREATE TABLE `master_city` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `state_id` int(11) NOT NULL,
  `latitude` varchar(255) NOT NULL,
  `longitude` varchar(255) NOT NULL,
  `north_east_latitude` varchar(255) NOT NULL,
  `north_east_longitude` varchar(255) NOT NULL,
  `south_west_latitude` varchar(255) NOT NULL,
  `south_west_longitude` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_city_introduction`
--

CREATE TABLE `master_city_introduction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `city_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `image_path` text,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_colour`
--

CREATE TABLE `master_colour` (
  `colour_id` int(11) NOT NULL AUTO_INCREMENT,
  `colour_name` varchar(225) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`colour_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_company_share`
--

CREATE TABLE `master_company_share` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `status` enum('0','1') NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_country`
--

CREATE TABLE `master_country` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(3) NOT NULL,
  `name` varchar(150) NOT NULL,
  `phone_code` int(11) NOT NULL,
  `nationality` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Table structure for table `master_coupon`
--

CREATE TABLE `master_coupon` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `description` text,
  `master_coupon_type_id` int(11) DEFAULT NULL,
  `valid_from_date` datetime DEFAULT NULL,
  `valid_to_date` datetime DEFAULT NULL,
  `master_week_days_id` varchar(255) DEFAULT NULL,
  `master_package_id` int(11) DEFAULT NULL,
  `minimum_booking_amount` decimal(10,2) NOT NULL,
  `discount_type` varchar(50) DEFAULT NULL,
  `discount_amount` decimal(10,2) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `terms_condition` text,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 CHECKSUM=1;

--
-- Table structure for table `master_coupon_type`
--

CREATE TABLE `master_coupon_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `valid_from_date` datetime NOT NULL,
  `valid_to_date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_cron`
--

CREATE TABLE `master_cron` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) DEFAULT NULL,
  `name` text,
  `description` text,
  `created_date` datetime NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_currency`
--

CREATE TABLE `master_currency` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_name` varchar(255) NOT NULL,
  `name` varchar(50) NOT NULL,
  `exchange_rate` varchar(20) DEFAULT NULL,
  `symbol` varchar(100) NOT NULL,
  `fa_icon` varchar(20) NOT NULL,
  `code` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `ip` varchar(50) NOT NULL,
  `is_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_department`
--

CREATE TABLE `master_department` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `department_name` varchar(255) NOT NULL,
  `department_logo` text NOT NULL,
  `description` text NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `modified_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_document_type`
--

CREATE TABLE `master_document_type` (
  `doc_type_id` int(11) NOT NULL AUTO_INCREMENT,
  `document_name` varchar(100) NOT NULL,
  `doc_level_name` varchar(225) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `order_id` int(11) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`doc_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_documentation`
--

CREATE TABLE `master_documentation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_driver_cancellation`
--

CREATE TABLE `master_driver_cancellation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `order_by` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_duration`
--

CREATE TABLE `master_duration` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `description` varchar(50) NOT NULL,
  `create_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(50) NOT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_extra`
--

CREATE TABLE `master_extra` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `description` varchar(100) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_extra_single_occupancy`
--

CREATE TABLE `master_extra_single_occupancy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_fuel_type`
--

CREATE TABLE `master_fuel_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `fuel_type` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_gst_state_code`
--

CREATE TABLE `master_gst_state_code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `state_id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL,
  `tin_no` varchar(5) NOT NULL,
  `state_code` varchar(5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_gst_types`
--

CREATE TABLE `master_gst_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `name` varchar(225) NOT NULL,
  `rate` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hold_booking`
--

CREATE TABLE `master_hold_booking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `travel_days` varchar(50) NOT NULL DEFAULT '0' COMMENT 'fromdays-todays',
  `travel_hour` varchar(50) NOT NULL DEFAULT '0' COMMENT 'fromhour-tohour',
  `before_days` int(11) DEFAULT '0',
  `before_hour` int(11) DEFAULT '0',
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_category`
--

CREATE TABLE `master_hotel_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_facility_name`
--

CREATE TABLE `master_hotel_facility_name` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_feature_type`
--

CREATE TABLE `master_hotel_feature_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_features`
--

CREATE TABLE `master_hotel_features` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_location_type`
--

CREATE TABLE `master_hotel_location_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_meal_plan_type`
--

CREATE TABLE `master_hotel_meal_plan_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_promotion_type`
--

CREATE TABLE `master_hotel_promotion_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_by` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_rate_name`
--

CREATE TABLE `master_hotel_rate_name` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_rate_type`
--

CREATE TABLE `master_hotel_rate_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_hotel_season`
--

CREATE TABLE `master_hotel_season` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_by` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_language`
--

CREATE TABLE `master_language` (
  `language_id` int(11) NOT NULL AUTO_INCREMENT,
  `language_name` varchar(50) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`language_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_location`
--

CREATE TABLE `master_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `latitude` varchar(255) DEFAULT '0.0',
  `longitude` varchar(255) DEFAULT '0.0',
  `area` varchar(255) DEFAULT 'Not Available',
  `zone` varchar(50) DEFAULT 'Not Available',
  PRIMARY KEY (`id`),
  UNIQUE KEY `area` (`area`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_markup`
--

CREATE TABLE `master_markup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_meal_plan_type`
--

CREATE TABLE `master_meal_plan_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_meal_type`
--

CREATE TABLE `master_meal_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `meal_name` varchar(255) NOT NULL,
  `icon` varchar(20) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_module_manager`
--

CREATE TABLE `master_module_manager` (
  `module_id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(255) NOT NULL,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `namespace` varchar(255) DEFAULT NULL,
  `controller` varchar(255) DEFAULT NULL,
  `action` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `icon_class` varchar(255) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `menu_order` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_month`
--

CREATE TABLE `master_month` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_package`
--

CREATE TABLE `master_package` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type_id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `icon` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_package_mode`
--

CREATE TABLE `master_package_mode` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_mode` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_package_type`
--

CREATE TABLE `master_package_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `meta_title` varchar(255) NOT NULL,
  `meta_keywords` varchar(255) NOT NULL,
  `meta_description` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_payment_document`
--

CREATE TABLE `master_payment_document` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_payment_structure`
--

CREATE TABLE `master_payment_structure` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_period`
--

CREATE TABLE `master_period` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `master_person_types`
--

CREATE TABLE `master_person_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_premium`
--

CREATE TABLE `master_premium` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_property_type`
--

CREATE TABLE `master_property_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_refund_policy`
--

CREATE TABLE `master_refund_policy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_reschedule`
--

CREATE TABLE `master_reschedule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_id` int(11) NOT NULL,
  `before_time` time NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_room_category`
--

CREATE TABLE `master_room_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_room_facility`
--

CREATE TABLE `master_room_facility` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_room_type`
--

CREATE TABLE `master_room_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_rounding`
--

CREATE TABLE `master_rounding` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_sac_code`
--

CREATE TABLE `master_sac_code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(225) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_services`
--

CREATE TABLE `master_services` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_services_mapping`
--

CREATE TABLE `master_services_mapping` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_type_id` int(11) NOT NULL,
  `service_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_sightseeing_category`
--

CREATE TABLE `master_sightseeing_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_sightseeing_type`
--

CREATE TABLE `master_sightseeing_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_state`
--

CREATE TABLE `master_state` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `country_id` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_terms_condition_policy`
--

CREATE TABLE `master_terms_condition_policy` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_things_carry`
--

CREATE TABLE `master_things_carry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_tour_category`
--

CREATE TABLE `master_tour_category` (
  `tour_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_category_name` varchar(225) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`tour_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_tour_exclusion`
--

CREATE TABLE `master_tour_exclusion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_tour_inclusion`
--

CREATE TABLE `master_tour_inclusion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_tour_theme`
--

CREATE TABLE `master_tour_theme` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `theme_name` varchar(225) NOT NULL,
  `icon` varchar(50) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_transfer`
--

CREATE TABLE `master_transfer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL,
  `title` varchar(255) NOT NULL,
  `description` text NOT NULL,
  `image_path` text,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_veh_type`
--

CREATE TABLE `master_veh_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `veh_type_id` int(11) NOT NULL COMMENT '1-Private,2- Seat In Coach',
  `tour_pax` varchar(10) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_vehicle_model`
--

CREATE TABLE `master_vehicle_model` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle_type_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `aircondition` enum('0','1') DEFAULT NULL COMMENT '1=>AC, 0=>NON-AC',
  `person_capacity` int(2) DEFAULT NULL,
  `luggage_capacity` int(2) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-unpublish,1-publish,2-delete',
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_vehicle_model_live`
--

CREATE TABLE `master_vehicle_model_live` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle_type_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `aircondition` enum('0','1') DEFAULT NULL COMMENT '1=>AC, 0=>NON-AC',
  `person_capacity` int(2) DEFAULT NULL,
  `luggage_capacity` int(2) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-unpublish,1-publish,2-delete',
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_vehicle_model_old`
--

CREATE TABLE `master_vehicle_model_old` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle_type_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `aircondition` enum('0','1') DEFAULT NULL COMMENT '1=>AC, 0=>NON-AC',
  `person_capacity` int(2) DEFAULT NULL,
  `luggage_capacity` int(2) DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-unpublish,1-publish,2-delete',
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_vehicle_type`
--

CREATE TABLE `master_vehicle_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) DEFAULT NULL,
  `vehicle_type` varchar(50) NOT NULL,
  `seating_capacity` varchar(255) DEFAULT NULL,
  `amenities` varchar(255) DEFAULT NULL,
  `luggage` int(11) DEFAULT NULL,
  `vehicle_image` text,
  `color` varchar(15) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  `display_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_vehicle_type_old`
--

CREATE TABLE `master_vehicle_type_old` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle_type` varchar(50) NOT NULL,
  `seating_capacity` varchar(255) DEFAULT NULL,
  `amenities` varchar(255) DEFAULT NULL,
  `luggage` int(11) DEFAULT NULL,
  `vehicle_image` varchar(255) DEFAULT NULL,
  `color` varchar(15) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  `display_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_voucher_type`
--

CREATE TABLE `master_voucher_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `forex` varchar(255) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_waiting`
--

CREATE TABLE `master_waiting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_week_days`
--

CREATE TABLE `master_week_days` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `master_working_shift`
--

CREATE TABLE `master_working_shift` (
  `working_shift_id` int(11) NOT NULL AUTO_INCREMENT,
  `shift` varchar(100) NOT NULL,
  `shift_time` varchar(10) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`working_shift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `meal`
--

CREATE TABLE `meal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `meal_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `meal_log`
--

CREATE TABLE `meal_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `meal_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `membership`
--

CREATE TABLE `membership` (
  `membership_id` int(11) NOT NULL AUTO_INCREMENT,
  `membership_name` varchar(255) NOT NULL,
  `membership_state` int(11) NOT NULL,
  `status` enum('0','1','2') NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`membership_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `membership_features`
--

CREATE TABLE `membership_features` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) DEFAULT NULL,
  `feature_name` varchar(255) DEFAULT NULL,
  `feature_desc` text,
  `image_path` text,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `feature_id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `membership_package`
--

CREATE TABLE `membership_package` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_name` varchar(255) NOT NULL,
  `package_desc` text NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `is_active` int(11) NOT NULL,
  `order_val` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  `package_id` varchar(200) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `package_id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `membership_subpackage`
--

CREATE TABLE `membership_subpackage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_id` int(11) NOT NULL,
  `subpackage_name` varchar(255) NOT NULL,
  `subpackage_desc` varchar(200) NOT NULL,
  `subpackage_max_fees` varchar(5) NOT NULL,
  `subpackage_min_fees` varchar(5) DEFAULT NULL,
  `image` text NOT NULL,
  `duration` int(11) NOT NULL DEFAULT '0',
  `duration_type_id` int(11) NOT NULL,
  `renew_notification_mail` varchar(7) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `is_active` int(11) NOT NULL,
  `order_val` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `package_id` (`package_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `membership_subpackage_ext`
--

CREATE TABLE `membership_subpackage_ext` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `subpackage_id` int(11) NOT NULL,
  `feature_id` int(11) NOT NULL,
  `feature_status` int(11) NOT NULL,
  `feature_value` varchar(200) NOT NULL,
  `is_active` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `subpackage_ext_id` (`id`),
  KEY `subpackage_id` (`subpackage_id`),
  KEY `feature_id` (`feature_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `menu_group`
--

CREATE TABLE `menu_group` (
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_setup_id` int(11) NOT NULL,
  `group_name` varchar(100) NOT NULL,
  `group_position` varchar(255) NOT NULL,
  `no_of_menus` tinyint(2) NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  `status` tinyint(2) DEFAULT '1',
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `mins`
--

CREATE TABLE `mins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `Min` varchar(50) NOT NULL,
  `lang` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `night_charge`
--

CREATE TABLE `night_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL COMMENT 'base_vehicle_type(table Auto id)',
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `night_rate_begins` time NOT NULL DEFAULT '00:00:00',
  `night_rate_ends` time NOT NULL DEFAULT '00:00:00',
  `night_rate_type` varchar(10) DEFAULT NULL COMMENT '1-%,2-Rs',
  `night_rate_value` varchar(10) NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `oauthaccestoken`
--

CREATE TABLE `oauthaccestoken` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_token` varchar(100) NOT NULL,
  `user_id` int(11) NOT NULL,
  `expires` varchar(100) NOT NULL,
  `scope` varchar(10) NOT NULL,
  `callfrom` varchar(50) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `oneway_city_route_package`
--

CREATE TABLE `oneway_city_route_package` (
  `route_id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `city_distance_id` int(11) NOT NULL,
  `via_city` varchar(100) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '0-Inactive-1-Actiive,2-Deleted',
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT '0',
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`route_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `outstation_booking_details`
--

CREATE TABLE `outstation_booking_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `pickup_date` date DEFAULT NULL,
  `pickup_time` time DEFAULT NULL,
  `pickcity_id` int(11) NOT NULL DEFAULT '0',
  `dropcity_id` int(11) NOT NULL DEFAULT '0',
  `distance` int(11) NOT NULL DEFAULT '0',
  `days` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `booking_id` (`booking_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `outstation_cities`
--

CREATE TABLE `outstation_cities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cities` varchar(255) NOT NULL,
  `lang` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `outstation_package`
--

CREATE TABLE `outstation_package` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pkgName` varchar(255) DEFAULT NULL,
  `masterPKG_ID` int(11) DEFAULT '104',
  `Status` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `package_active_timeslot`
--

CREATE TABLE `package_active_timeslot` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT '0',
  `status` int(11) NOT NULL,
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `package_active_weekdays`
--

CREATE TABLE `package_active_weekdays` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `weekdays_id` varchar(20) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `package_type`
--

CREATE TABLE `package_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tour_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  `lang_flag` varchar(250) COLLATE utf8_unicode_ci DEFAULT 'en_US',
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`tour_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `packages`
--

CREATE TABLE `packages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `package_name` text,
  `price` int(11) DEFAULT NULL,
  `nri_price` int(11) DEFAULT NULL,
  `other_charge` int(11) DEFAULT NULL,
  `total_days` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `parking_charge`
--

CREATE TABLE `parking_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `airport_railway_id` int(11) NOT NULL DEFAULT '0',
  `vehicle_type_id` int(11) NOT NULL DEFAULT '0',
  `period_id` int(11) NOT NULL DEFAULT '0',
  `amount` varchar(10) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `payment_transaction_response`
--

CREATE TABLE `payment_transaction_response` (
  `payment_response_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL COMMENT 'clientcode',
  `mmp_txn` varchar(255) NOT NULL,
  `mer_txn` varchar(100) NOT NULL,
  `amt` varchar(100) NOT NULL,
  `prod` varchar(50) NOT NULL,
  `date` datetime NOT NULL,
  `bank_txn` varchar(100) NOT NULL,
  `f_code` varchar(20) NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `merchant_id` varchar(100) NOT NULL,
  `udf9` varchar(50) DEFAULT NULL,
  `discriminator` varchar(50) NOT NULL,
  `surcharge` varchar(50) DEFAULT NULL,
  `CardNumber` varchar(100) DEFAULT NULL,
  `signature` varchar(255) NOT NULL,
  PRIMARY KEY (`payment_response_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `payment_type`
--

CREATE TABLE `payment_type` (
  `payment_type_id` int(11) NOT NULL AUTO_INCREMENT,
  `pay_type_mode` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`payment_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `payment_upload`
--

CREATE TABLE `payment_upload` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `payment_ref_no` varchar(200) DEFAULT NULL,
  `deposit_date` date DEFAULT NULL,
  `transaction_mode` varchar(15) DEFAULT NULL,
  `fileupload` varchar(100) DEFAULT NULL,
  `trans` varchar(100) DEFAULT NULL,
  `chequeno` varchar(50) DEFAULT NULL,
  `partner_bank` varchar(255) DEFAULT NULL,
  `amount` double(10,2) NOT NULL,
  `deposit_bank` varchar(100) DEFAULT NULL,
  `deposit_branch` varchar(100) DEFAULT NULL,
  `remark` varchar(255) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-Pending,1-Approved,2-Audit',
  `credit_date` varchar(50) DEFAULT NULL,
  `credit_amount` varchar(100) DEFAULT NULL,
  `audit_date` date DEFAULT NULL,
  `admin_remarks` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `driver_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `peak_time_charge`
--

CREATE TABLE `peak_time_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `peaktime_type` varchar(10) NOT NULL DEFAULT '%',
  `peaktime_value` int(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `postalcode_fare`
--

CREATE TABLE `postalcode_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `pickup_postcode` text NOT NULL,
  `drop_postcode` text NOT NULL,
  `price` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `pre_waiting_charge`
--

CREATE TABLE `pre_waiting_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `pre_waiting_upto_minutes` text NOT NULL,
  `pre_waiting_fees` varchar(5) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `prefered_location`
--

CREATE TABLE `prefered_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `location_id` int(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `premiums_fare`
--

CREATE TABLE `premiums_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `premiums_type` varchar(10) NOT NULL COMMENT '1-%,2-Rs',
  `premiums_value` varchar(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `qualification`
--

CREATE TABLE `qualification` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `qualification_name` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `quantity`
--

CREATE TABLE `quantity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `quantity_value` int(11) NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `quick_call_history`
--

CREATE TABLE `quick_call_history` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `CallerID` int(11) DEFAULT NULL,
  `NewCall` varchar(50) DEFAULT NULL,
  `PhoneID` varchar(50) DEFAULT NULL,
  `PhoneNo` varchar(50) DEFAULT NULL,
  `CallDateTime` varchar(50) DEFAULT NULL,
  `CallEndDateTime` varchar(50) DEFAULT NULL,
  `identifier` varchar(50) DEFAULT NULL,
  `Attempt` varchar(50) DEFAULT NULL,
  `ForCompaignID` varchar(50) DEFAULT NULL,
  `StatusID` varchar(50) DEFAULT NULL,
  `AreaTimeGap` varchar(50) DEFAULT NULL,
  `SmdrRunning` varchar(50) DEFAULT NULL,
  `Priority` varchar(50) DEFAULT NULL,
  KEY `ID` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `quick_login_history`
--

CREATE TABLE `quick_login_history` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `LoginID` int(11) DEFAULT NULL,
  `QAgentID` varchar(50) DEFAULT NULL,
  `QAgentName` varchar(50) DEFAULT NULL,
  `QCompaignName` varchar(50) DEFAULT NULL,
  `QLoginDateTime` varchar(50) DEFAULT NULL,
  KEY `ID` (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `recently_viewed`
--

CREATE TABLE `recently_viewed` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_stage` varchar(255) DEFAULT NULL,
  `booking_data` text,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `referral_discount_amount`
--

CREATE TABLE `referral_discount_amount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) DEFAULT NULL,
  `user_type` int(11) NOT NULL COMMENT '1-N User,2-UNReg-User,3-Driver,4-Vendor,5-Guide,6-Corporate,7-Agent',
  `installation_amount_user` int(11) NOT NULL,
  `installation_amount_referer` int(11) NOT NULL,
  `booking_amount_percent` int(11) NOT NULL,
  `created` datetime NOT NULL,
  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `referral_signup_history`
--

CREATE TABLE `referral_signup_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `referer_id` int(11) NOT NULL,
  `user_amount` int(11) NOT NULL,
  `referer_amount` int(11) NOT NULL,
  `created` datetime NOT NULL,
  `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `region_text`
--

CREATE TABLE `region_text` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `page_type` int(11) NOT NULL,
  `text` text NOT NULL,
  `text_id` varchar(110) NOT NULL,
  `text_status` int(11) NOT NULL,
  `page_title` varchar(11) NOT NULL,
  `lang` int(11) NOT NULL,
  `page` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `related_tours`
--

CREATE TABLE `related_tours` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `tour_id` int(11) NOT NULL,
  `related_tour_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `road_tax`
--

CREATE TABLE `road_tax` (
  `road_tax_id` int(11) NOT NULL AUTO_INCREMENT,
  `state_id` int(11) NOT NULL,
  `duration_type_id` int(11) NOT NULL,
  `vehicle_type_id` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `is_active` int(5) DEFAULT '1',
  `ip` varchar(50) NOT NULL,
  PRIMARY KEY (`road_tax_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `role`
--

CREATE TABLE `role` (
  `role_id` int(11) NOT NULL AUTO_INCREMENT,
  `region_id` int(11) DEFAULT NULL,
  `role_name` varchar(255) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `role_rule`
--

CREATE TABLE `role_rule` (
  `rule_id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `is_read` tinyint(2) DEFAULT NULL,
  `is_write` tinyint(2) DEFAULT NULL,
  `is_delete` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `role_type`
--

CREATE TABLE `role_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(15) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `route_knowledge`
--

CREATE TABLE `route_knowledge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `route_id` int(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `rt_cabmanager_cabs`
--

CREATE TABLE `rt_cabmanager_cabs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `image` varchar(255) NOT NULL,
  `capacity` int(2) NOT NULL,
  `no_of_cabs` int(11) NOT NULL,
  `min_cov_km_day_os` int(11) NOT NULL,
  `min_cov_hours_local` int(11) NOT NULL,
  `min_cov_km_local` int(11) NOT NULL,
  `per_hour_extra_charge` int(11) NOT NULL,
  `per_km_extra_charge` int(11) NOT NULL,
  `per_day_extra_charge_os` int(11) NOT NULL,
  `airport_pickup_charge` int(11) NOT NULL,
  `airport_drop_charge` int(11) NOT NULL,
  `placard_charge` int(11) NOT NULL,
  `parking_charge` int(11) NOT NULL,
  `driver_allowance` int(11) NOT NULL,
  `helper_charge` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` datetime NOT NULL,
  `services` varchar(255) NOT NULL,
  `corder` int(11) NOT NULL,
  `min_charge_localhire_404` int(11) NOT NULL,
  `min_charge_localhire_808` int(11) NOT NULL,
  `per_km_charge_os` int(11) NOT NULL,
  `per_km_charge_p2p` int(11) NOT NULL,
  `per_km_charge_airport` int(11) NOT NULL,
  `min_cov_km_p2p` int(11) NOT NULL,
  `min_cov_km_airport` int(11) NOT NULL,
  `background_km_outstation` int(11) NOT NULL,
  `background_km_airport` int(11) NOT NULL,
  `background_km_ptp` int(11) NOT NULL,
  `background_km_localhire` int(11) NOT NULL,
  `city` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `rto_state_taxes`
--

CREATE TABLE `rto_state_taxes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `state_id` int(11) NOT NULL DEFAULT '0',
  `vehicle_type_id` int(11) NOT NULL DEFAULT '0',
  `period_id` int(11) NOT NULL DEFAULT '0',
  `amount` varchar(10) DEFAULT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sass_company_vendor`
--

CREATE TABLE `sass_company_vendor` (
  `sass_comp_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_setup_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`sass_comp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Map Domain''s Vendor';

--
-- Table structure for table `season`
--

CREATE TABLE `season` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `season_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `seasonal_discount`
--

CREATE TABLE `seasonal_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL COMMENT 'Foreign Key For All Booking Types',
  `bkg_type_id` int(11) NOT NULL,
  `season_name` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `season_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `season_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `seasonal_discount_log`
--

CREATE TABLE `seasonal_discount_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL COMMENT 'Foreign Key For All Booking Types',
  `bkg_type_id` int(11) NOT NULL,
  `season_name` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `season_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `season_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `shows`
--

CREATE TABLE `shows` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `show_name` varchar(50) NOT NULL,
  `country_id` int(11) NOT NULL,
  `state_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `image` text NOT NULL,
  `desc` text NOT NULL,
  `time_in` varchar(20) NOT NULL,
  `time_out` varchar(20) NOT NULL,
  `week_off` varchar(50) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing`
--

CREATE TABLE `sightseeing` (
  `s_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `sightseeing_cover` varchar(100) NOT NULL,
  `latitude` varchar(100) NOT NULL DEFAULT '0',
  `longitude` varchar(100) NOT NULL DEFAULT '0',
  `address` varchar(255) DEFAULT NULL,
  `coverage_km` varchar(10) NOT NULL,
  `coverage_hrs` varchar(10) NOT NULL,
  `difficulty_level` varchar(50) NOT NULL,
  `is_unique` tinyint(2) NOT NULL DEFAULT '0',
  `popularity` varchar(100) NOT NULL,
  `youtube_url` varchar(255) NOT NULL,
  `description` text,
  `meeting_point` varchar(255) NOT NULL,
  `highlights` text,
  `related_tours` varchar(255) NOT NULL,
  `brochure_title` varchar(100) NOT NULL,
  `brochure_desc` text NOT NULL,
  `meta_keywords` varchar(100) NOT NULL,
  `meta_title` varchar(100) NOT NULL,
  `meta_desc` text NOT NULL,
  `payment_structure` text NOT NULL,
  `payment_documentation` text NOT NULL,
  `cancellation_policy` text NOT NULL,
  `refund_policy` text NOT NULL,
  `terms_condition_policy` text NOT NULL,
  `payment_structure_content` text NOT NULL,
  `documentation_content` text NOT NULL,
  `cancellation_policy_content` text NOT NULL,
  `refund_policy_content` text NOT NULL,
  `term_policy_content` text NOT NULL,
  `cost_inclusive` text NOT NULL,
  `cost_exclusive` text NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`s_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_booking_details`
--

CREATE TABLE `sightseeing_booking_details` (
  `s_booking_id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) NOT NULL,
  `sightseeing_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL DEFAULT '0',
  PRIMARY KEY (`s_booking_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_details`
--

CREATE TABLE `sightseeing_details` (
  `s_detail_id` int(11) NOT NULL AUTO_INCREMENT,
  `s_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `tour_type` tinyint(2) NOT NULL DEFAULT '0',
  `passenger` varchar(10) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `rate_type` tinyint(2) NOT NULL DEFAULT '0',
  `rate_per_fixed` tinyint(2) NOT NULL DEFAULT '0',
  `rate_value` int(11) NOT NULL,
  `tax_type` tinyint(2) NOT NULL DEFAULT '0',
  `tax_per_fixed` tinyint(2) NOT NULL DEFAULT '0',
  `tax_value` int(11) NOT NULL,
  `service_charge` varchar(50) DEFAULT NULL,
  `service_charge_type` varchar(50) DEFAULT NULL,
  `service_charge_value` varchar(50) DEFAULT NULL,
  `discount_netrate_commissionrate` varchar(50) DEFAULT NULL,
  `discount_commission_rate_type` varchar(50) DEFAULT NULL,
  `discount_commission_rate_value` varchar(50) DEFAULT NULL,
  `discount_valid_from` varchar(50) DEFAULT NULL,
  `discount_valid_to` varchar(50) DEFAULT NULL,
  `week_off` text NOT NULL,
  `opening_time` varchar(20) NOT NULL,
  `closing_time` varchar(20) NOT NULL,
  `estimated_time` varchar(50) NOT NULL,
  `age_from` int(11) NOT NULL,
  `age_to` int(11) NOT NULL,
  `transfer` tinyint(2) NOT NULL,
  `pickup_point` varchar(255) NOT NULL,
  `allocation` varchar(255) NOT NULL,
  `cut_off_days` varchar(255) NOT NULL,
  `price_plan_name` varchar(255) NOT NULL,
  `stay_more_status` tinyint(2) NOT NULL DEFAULT '0',
  `seasonal_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `last_min_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `early_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `related_tours` varchar(255) DEFAULT NULL,
  `brochure_title` varchar(100) DEFAULT NULL,
  `brochure_desc` text,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `meta_title` varchar(100) DEFAULT NULL,
  `meta_desc` text,
  `payment_structure` text,
  `payment_documentation` text,
  `cancellation_policy` text,
  `refund_policy` text,
  `terms_condition_policy` text,
  `payment_structure_content` text,
  `documentation_content` text,
  `cancellation_policy_content` text,
  `refund_policy_content` text,
  `term_policy_content` text,
  `cost_inclusive` text,
  `cost_exclusive` text,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`s_detail_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_details_log`
--

CREATE TABLE `sightseeing_details_log` (
  `s_detail_id` int(11) NOT NULL,
  `s_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `tour_type` tinyint(2) NOT NULL DEFAULT '0',
  `passenger` varchar(10) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `rate_type` tinyint(2) NOT NULL DEFAULT '0',
  `rate_per_fixed` tinyint(2) NOT NULL DEFAULT '0',
  `rate_value` int(11) NOT NULL,
  `tax_type` tinyint(2) NOT NULL DEFAULT '0',
  `tax_per_fixed` tinyint(2) NOT NULL DEFAULT '0',
  `tax_value` int(11) NOT NULL,
  `service_charge` varchar(50) DEFAULT NULL,
  `service_charge_type` varchar(50) DEFAULT NULL,
  `service_charge_value` varchar(50) DEFAULT NULL,
  `discount_netrate_commissionrate` varchar(50) DEFAULT NULL,
  `discount_commission_rate_type` varchar(50) DEFAULT NULL,
  `discount_commission_rate_value` varchar(50) DEFAULT NULL,
  `discount_valid_from` varchar(50) DEFAULT NULL,
  `discount_valid_to` varchar(50) DEFAULT NULL,
  `week_off` text,
  `opening_time` varchar(20) DEFAULT NULL,
  `closing_time` varchar(20) DEFAULT NULL,
  `estimated_time` varchar(50) DEFAULT NULL,
  `age_from` int(11) NOT NULL,
  `age_to` int(11) NOT NULL,
  `transfer` tinyint(2) NOT NULL,
  `pickup_point` varchar(255) DEFAULT NULL,
  `allocation` varchar(255) DEFAULT NULL,
  `cut_off_days` varchar(255) DEFAULT NULL,
  `price_plan_name` varchar(255) DEFAULT NULL,
  `stay_more_status` tinyint(2) NOT NULL DEFAULT '0',
  `seasonal_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `last_min_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `early_booking_status` tinyint(2) NOT NULL DEFAULT '0',
  `daywise_discount_status` tinyint(2) NOT NULL DEFAULT '0',
  `related_tours` varchar(255) DEFAULT NULL,
  `brochure_title` varchar(100) DEFAULT NULL,
  `brochure_desc` text,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `meta_title` varchar(100) DEFAULT NULL,
  `meta_desc` text,
  `payment_structure` text,
  `payment_documentation` text,
  `cancellation_policy` text,
  `refund_policy` text,
  `terms_condition_policy` text,
  `payment_structure_content` text,
  `documentation_content` text,
  `cancellation_policy_content` text,
  `refund_policy_content` text,
  `term_policy_content` text,
  `cost_inclusive` text,
  `cost_exclusive` text,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_fair`
--

CREATE TABLE `sightseeing_fair` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s_id` int(11) NOT NULL,
  `nationality` varchar(30) NOT NULL,
  `age_id` int(11) NOT NULL,
  `fair` int(11) NOT NULL,
  `taxes` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_language`
--

CREATE TABLE `sightseeing_language` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s_id` int(11) NOT NULL,
  `language_id` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Delete',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sightseeing_type`
--

CREATE TABLE `sightseeing_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s_id` int(11) NOT NULL,
  `sightseeing_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `signup_status`
--

CREATE TABLE `signup_status` (
  `signup_status_id` int(11) NOT NULL AUTO_INCREMENT,
  `status_name` varchar(50) NOT NULL,
  `signup_status_class` varchar(50) NOT NULL,
  `is_active` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`signup_status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sms_api`
--

CREATE TABLE `sms_api` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `api_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_sender_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_base_uri` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `api_ts_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `active` enum('1','0') COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `sms_status`
--

CREATE TABLE `sms_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `mesg` longtext NOT NULL,
  `contact_no` varchar(50) NOT NULL,
  `cost` int(50) NOT NULL,
  `status` int(11) NOT NULL,
  `sent_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `UID` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sms_template`
--

CREATE TABLE `sms_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `message` text,
  `msg_type` text,
  `msg_sku` text,
  `variables` text,
  `text_limit` int(11) DEFAULT NULL,
  `is_active` int(11) DEFAULT NULL,
  `status_done` int(11) NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Contains SMS template';

--
-- Table structure for table `specialization`
--

CREATE TABLE `specialization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `specialization_name` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `status`
--

CREATE TABLE `status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `stay_more_discount`
--

CREATE TABLE `stay_more_discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL COMMENT 'Foreign Key For All Booking Types',
  `bkg_type_id` int(11) NOT NULL,
  `staying_days` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `staying_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `staying_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `stay_more_discount_log`
--

CREATE TABLE `stay_more_discount_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL COMMENT 'Foreign Key For All Booking Types',
  `bkg_type_id` int(11) NOT NULL,
  `staying_days` varchar(255) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `staying_discount_type` tinyint(2) NOT NULL DEFAULT '0',
  `staying_discount_amount` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `sub_complaint`
--

CREATE TABLE `sub_complaint` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `complaint_type` int(11) NOT NULL,
  `sub_complaint` varchar(200) NOT NULL,
  `created_by` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_on` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tax_detail`
--

CREATE TABLE `tax_detail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `master_booking_type_id` int(11) DEFAULT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `tax_type` varchar(10) DEFAULT NULL,
  `sgst` float DEFAULT '0',
  `cgst` float NOT NULL DEFAULT '0',
  `igst` float NOT NULL DEFAULT '0',
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tblcity`
--

CREATE TABLE `tblcity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `state` varchar(255) NOT NULL,
  `city_radius` int(11) NOT NULL,
  `vicinity` longtext NOT NULL,
  `locations` longtext NOT NULL,
  `published` tinyint(4) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `modified_date` datetime NOT NULL,
  `ncr` int(11) unsigned DEFAULT '0',
  `local` int(11) DEFAULT '1',
  `point` int(11) DEFAULT '1',
  `airport` int(11) DEFAULT '1',
  `outstation` int(11) DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `temp_outstation_city_details`
--

CREATE TABLE `temp_outstation_city_details` (
  `temp_city_id` int(11) NOT NULL AUTO_INCREMENT,
  `temp_id` int(11) DEFAULT NULL,
  `from_city_id` int(11) DEFAULT NULL,
  `from_city_name` varchar(100) DEFAULT NULL,
  `to_city_id` int(11) DEFAULT NULL,
  `to_city_name` varchar(11) DEFAULT NULL,
  `departure_date` date DEFAULT NULL,
  `destination_date` date DEFAULT NULL,
  `departure_time` time DEFAULT NULL,
  `destination_time` time DEFAULT NULL,
  `estimate_time` time DEFAULT NULL,
  `distance_km` varchar(20) DEFAULT NULL,
  `no_of_days` tinyint(2) DEFAULT NULL,
  `guide_id` int(11) DEFAULT NULL,
  `guide_alldays_status` varchar(10) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`temp_city_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `temp_outstation_user_details`
--

CREATE TABLE `temp_outstation_user_details` (
  `temp_id` int(11) NOT NULL,
  `user_session_id` varchar(255) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `first_name` varchar(225) DEFAULT NULL,
  `last_name` varchar(225) DEFAULT NULL,
  `user_email` varchar(50) NOT NULL,
  `user_mobile` varchar(20) NOT NULL,
  `user_alternate_mobile` varchar(255) DEFAULT NULL,
  `outstation_type` varchar(10) NOT NULL,
  `base_comb_id` int(11) DEFAULT NULL,
  `no_adult` tinyint(2) NOT NULL,
  `no_child` tinyint(2) NOT NULL,
  `no_luggages` tinyint(2) NOT NULL,
  `no_cars` tinyint(1) NOT NULL,
  `flight_mode_status` enum('No','Yes') DEFAULT NULL,
  `flight_no` varchar(100) DEFAULT NULL,
  `flight_time` time DEFAULT NULL,
  `pick_up_address` varchar(255) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `temp_sightseeing`
--

CREATE TABLE `temp_sightseeing` (
  `sightseeing_auto_id` int(11) NOT NULL,
  `temp_city_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `sight_seeing_id` int(11) NOT NULL,
  `date` date DEFAULT NULL,
  `time` time DEFAULT NULL,
  `days` tinyint(2) DEFAULT NULL,
  `distance` double(6,2) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `testimonial`
--

CREATE TABLE `testimonial` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `description` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(30) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `things_carry`
--

CREATE TABLE `things_carry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `things_carry_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_category`
--

CREATE TABLE `tour_category` (
  `tour_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_id` int(11) NOT NULL,
  `category_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`tour_category_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail`
--

CREATE TABLE `tour_detail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `tours_type` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT '0',
  `city_id` int(11) DEFAULT '0',
  `post_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_operator` int(11) DEFAULT NULL,
  `starting_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ending_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `destination_cover` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `no_of_traveller` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `package_validity_from` date DEFAULT NULL,
  `package_validity_to` date DEFAULT NULL,
  `booking_validity_from` date DEFAULT NULL,
  `booking_validity_to` date DEFAULT NULL,
  `tours_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rating` int(11) DEFAULT NULL,
  `num_of_nights` int(11) DEFAULT NULL,
  `num_of_days` int(11) DEFAULT NULL,
  `tour_type` tinyint(2) NOT NULL COMMENT '1-Private,2-Group Type',
  `package_specification` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `short_desc` longtext COLLATE utf8_unicode_ci,
  `inclusions` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `exclusions` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `package_category` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_image_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_image` text COLLATE utf8_unicode_ci,
  `tours_price` double DEFAULT NULL,
  `infant_price` double NOT NULL DEFAULT '0',
  `price_type` enum('person','package') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'package',
  `tours_date` datetime DEFAULT NULL,
  `tours_order` int(11) DEFAULT '0',
  `visiting_cities` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `related_items` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `featured` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0',
  `active` enum('1','0') COLLATE utf8_unicode_ci DEFAULT '1',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci,
  `duration` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `costs_of_children` double DEFAULT NULL,
  `location_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accommodates` int(11) DEFAULT NULL,
  `transportation` text COLLATE utf8_unicode_ci,
  `tour_policy` text COLLATE utf8_unicode_ci,
  `sightseeing` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `Pickup_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `supplementary_room` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `drop_off_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `terms_and_condition` text COLLATE utf8_unicode_ci,
  `scheduled_on` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery` text COLLATE utf8_unicode_ci,
  `feature_google_map` text COLLATE utf8_unicode_ci,
  `tour_highlights` longtext COLLATE utf8_unicode_ci,
  `itinerary_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itinerary_desc` longtext COLLATE utf8_unicode_ci,
  `tours_package_available_from` date NOT NULL DEFAULT '0000-00-00',
  `available_expire_date` date DEFAULT '0000-00-00',
  `journey_start_date` date DEFAULT '0000-00-00',
  `entertainments` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `multilingual_guide` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payment_desc` longtext COLLATE utf8_unicode_ci,
  `lang_flag` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `availability_country` int(11) NOT NULL,
  `availability_city` int(11) NOT NULL,
  `payment_structure_id` int(11) DEFAULT NULL,
  `document_id` int(11) NOT NULL,
  `cancellation_policy` int(11) NOT NULL,
  `refund_policy` int(11) NOT NULL,
  `term_policy` int(11) DEFAULT NULL,
  `payment_structure_content` text COLLATE utf8_unicode_ci,
  `documentation_content` text COLLATE utf8_unicode_ci,
  `cancellation_policy_content` text COLLATE utf8_unicode_ci,
  `refund_policy_content` text COLLATE utf8_unicode_ci,
  `term_policy_content` text COLLATE utf8_unicode_ci,
  `created_date` datetime DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tours_page_category_id` (`package_category`) USING BTREE,
  KEY `tours_page_active` (`active`) USING BTREE,
  KEY `tours_page_featured` (`featured`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tour_detail_deals`
--

CREATE TABLE `tour_detail_deals` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `adult_discount` varchar(5) NOT NULL,
  `child_discount` varchar(5) NOT NULL,
  `infant_discount` varchar(5) NOT NULL,
  `percentage_amount` varchar(5) NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_itinerary`
--

CREATE TABLE `tour_detail_itinerary` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `day` int(11) NOT NULL,
  `hotel_city` int(11) NOT NULL,
  `no_of_night` int(11) NOT NULL,
  `introduction` varchar(255) NOT NULL,
  `introduction_detail` text NOT NULL,
  `transfer` varchar(255) NOT NULL,
  `transfer_description` varchar(255) NOT NULL,
  `itinerary_title` varchar(255) NOT NULL,
  `detailed_itinerary` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_itinerary_flight`
--

CREATE TABLE `tour_detail_itinerary_flight` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_itinerary_id` int(11) NOT NULL,
  `from_sector` varchar(255) NOT NULL,
  `to_sector` varchar(255) NOT NULL,
  `airline_id` int(11) NOT NULL,
  `departure` text NOT NULL,
  `arrival` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_itinerary_sightseeing`
--

CREATE TABLE `tour_detail_itinerary_sightseeing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_itinerary_id` int(11) NOT NULL,
  `sightseeing_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_itinerary_to_hotel`
--

CREATE TABLE `tour_detail_itinerary_to_hotel` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_itinerary_id` int(11) NOT NULL,
  `hotel_id` int(11) NOT NULL,
  `room_category` int(11) NOT NULL,
  `no_of_nights` int(11) NOT NULL,
  `price_single` varchar(5) NOT NULL,
  `price_twin_sharing` varchar(5) NOT NULL,
  `price_extra_bed` varchar(5) NOT NULL,
  `price_child_no_bed` varchar(5) NOT NULL,
  `transport_type` int(11) NOT NULL,
  `transport_price` varchar(5) NOT NULL,
  `adult_occupancy_cost_price` varchar(5) NOT NULL,
  `adult_occupancy_selling_price` varchar(5) NOT NULL,
  `extra_bed_cost_price` varchar(5) NOT NULL,
  `extra_bed_selling_price` varchar(5) NOT NULL,
  `adult_twin_sharing_cost_price` varchar(5) NOT NULL,
  `adult_twin_sharing_selling_price` varchar(5) NOT NULL,
  `child_no_bed_cost_price` varchar(5) NOT NULL,
  `child_no_bed_selling_price` varchar(5) NOT NULL,
  `price_type` int(11) NOT NULL,
  `payment_description` text NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_itinerary_to_transport`
--

CREATE TABLE `tour_detail_itinerary_to_transport` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_itinerary_id` int(11) NOT NULL,
  `vehicle_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_category`
--

CREATE TABLE `tour_detail_to_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `package_category_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_departure`
--

CREATE TABLE `tour_detail_to_departure` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `departure_date` date DEFAULT NULL,
  `departure_time` time DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_destinations`
--

CREATE TABLE `tour_detail_to_destinations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_end_city`
--

CREATE TABLE `tour_detail_to_end_city` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_exclusions`
--

CREATE TABLE `tour_detail_to_exclusions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `exclusion_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_inclusion`
--

CREATE TABLE `tour_detail_to_inclusion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `inclusion_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_inclusions`
--

CREATE TABLE `tour_detail_to_inclusions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `inclusion_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_start_city`
--

CREATE TABLE `tour_detail_to_start_city` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_theme`
--

CREATE TABLE `tour_detail_to_theme` (
  `tour_theme_id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `theme_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`tour_theme_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_detail_to_type`
--

CREATE TABLE `tour_detail_to_type` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `tour_type_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_fare`
--

CREATE TABLE `tour_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `currency_type_id` int(11) NOT NULL,
  `adult_price` varchar(5) NOT NULL,
  `child_price` varchar(5) NOT NULL,
  `infant_price` varchar(5) NOT NULL,
  `senior_citizen_price` varchar(5) NOT NULL,
  `is_guide_available` int(11) NOT NULL,
  `guide_lang` int(11) NOT NULL,
  `guide_cost` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_fare_log`
--

CREATE TABLE `tour_fare_log` (
  `id` int(11) NOT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `currency_type_id` int(11) NOT NULL,
  `adult_price` varchar(5) NOT NULL,
  `child_price` varchar(5) NOT NULL,
  `infant_price` varchar(5) NOT NULL,
  `senior_citizen_price` varchar(5) NOT NULL,
  `is_guide_available` int(11) NOT NULL,
  `guide_lang` int(11) NOT NULL,
  `guide_cost` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_inclusion`
--

CREATE TABLE `tour_inclusion` (
  `tour_inclusion_id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_id` int(11) NOT NULL,
  `inclusion_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`tour_inclusion_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_page`
--

CREATE TABLE `tour_page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_by` int(11) DEFAULT NULL,
  `package_type` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `tours_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_desc` longtext COLLATE utf8_unicode_ci,
  `tours_operator` int(11) DEFAULT NULL,
  `tours_type` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT '0',
  `state_id` int(11) DEFAULT '0',
  `area_id` int(11) DEFAULT '0',
  `post_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `starting_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ending_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `destination_cover` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `traveler_person` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `package_validity_from` date DEFAULT NULL,
  `package_validity_to` date DEFAULT NULL,
  `booking_validity_from` date DEFAULT NULL,
  `booking_validity_to` date DEFAULT NULL,
  `tour_type` tinyint(2) NOT NULL COMMENT '1-Private,2-Group Type',
  `tours_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num_of_days` int(11) DEFAULT NULL,
  `num_of_nights` int(11) DEFAULT NULL,
  `rating` int(11) DEFAULT NULL,
  `inclusions` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `exclusions` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `package_category` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `package_specification` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_image_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_image` text COLLATE utf8_unicode_ci,
  `tours_price` double DEFAULT NULL,
  `infant_price` double NOT NULL DEFAULT '0',
  `price_type` enum('person','package') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'package',
  `tours_date` datetime DEFAULT NULL,
  `tours_order` int(11) DEFAULT '0',
  `visiting_cities` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `related_items` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `featured` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0',
  `active` enum('1','0') COLLATE utf8_unicode_ci DEFAULT '1',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci,
  `duration` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `costs_of_children` double DEFAULT NULL,
  `location_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accommodates` int(11) DEFAULT NULL,
  `transportation` text COLLATE utf8_unicode_ci,
  `tour_policy` text COLLATE utf8_unicode_ci,
  `sightseeing` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `Pickup_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `supplementary_room` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `drop_off_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `terms_and_condition` text COLLATE utf8_unicode_ci,
  `scheduled_on` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery` text COLLATE utf8_unicode_ci,
  `feature_google_map` text COLLATE utf8_unicode_ci,
  `tour_highlights` longtext COLLATE utf8_unicode_ci,
  `itinerary_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itinerary_desc` longtext COLLATE utf8_unicode_ci,
  `available_expire_date` date DEFAULT '0000-00-00',
  `journey_start_date` date DEFAULT '0000-00-00',
  `entertainments` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `multilingual_guide` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payment_desc` longtext COLLATE utf8_unicode_ci,
  `lang_flag` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `modify_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tours_page_title` (`tours_title`) USING BTREE,
  KEY `tours_page_category_id` (`package_category`) USING BTREE,
  KEY `tours_page_active` (`active`) USING BTREE,
  KEY `tours_page_featured` (`featured`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tour_related_item`
--

CREATE TABLE `tour_related_item` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_detail_id` int(11) NOT NULL,
  `related_tour_detail_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_share`
--

CREATE TABLE `tour_share` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_id` int(11) NOT NULL,
  `trip_start_date` date NOT NULL,
  `trip_end_date` date NOT NULL,
  `sac_code_id` int(11) NOT NULL,
  `base_prices_per_person` varchar(5) NOT NULL,
  `base_total_price` varchar(5) NOT NULL,
  `base_grand_total` varchar(5) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `conversion_rate` varchar(5) NOT NULL,
  `prices_per_person` varchar(5) NOT NULL,
  `total_price` varchar(5) NOT NULL,
  `grand_total` varchar(5) NOT NULL,
  `gst_type` varchar(5) NOT NULL,
  `gst_rate` varchar(5) NOT NULL,
  `extra_markup` varchar(5) NOT NULL,
  `extra_discount` varchar(5) NOT NULL,
  `is_gst_included` tinyint(4) NOT NULL DEFAULT '0',
  `email_subject` varchar(255) NOT NULL,
  `customer_email` varchar(100) NOT NULL,
  `customer_firstname` varchar(100) NOT NULL,
  `customer_lastname` varchar(100) NOT NULL,
  `customer_mobile` varchar(50) NOT NULL,
  `email_cc` varchar(50) NOT NULL,
  `message` text NOT NULL,
  `is_share_with_price` tinyint(4) NOT NULL DEFAULT '0',
  `share_with_price_type` varchar(5) NOT NULL,
  `sent_date` date NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_share_flight`
--

CREATE TABLE `tour_share_flight` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_share_id` int(11) NOT NULL,
  `supplier_id` int(11) NOT NULL,
  `is_refundable` tinyint(4) NOT NULL DEFAULT '0',
  `may_flight_rate_change` tinyint(4) NOT NULL DEFAULT '0',
  `message` text NOT NULL,
  `total_cost` varchar(5) NOT NULL,
  `total_markup` varchar(5) NOT NULL,
  `total_gst` varchar(5) NOT NULL,
  `final_price` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_share_flight_person`
--

CREATE TABLE `tour_share_flight_person` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_share_flight_id` int(11) NOT NULL,
  `person_type_id` int(11) NOT NULL,
  `no_of_persons` varchar(5) NOT NULL,
  `cost_pp` varchar(5) NOT NULL,
  `markup_pp` varchar(5) NOT NULL,
  `gst` varchar(5) NOT NULL,
  `total` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_share_room`
--

CREATE TABLE `tour_share_room` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_share_id` int(11) NOT NULL,
  `no_of_adults` varchar(5) NOT NULL,
  `no_of_children` varchar(5) NOT NULL,
  `no_of_infants` varchar(5) NOT NULL,
  `extra_single_occupancy_adult` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_share_room_children`
--

CREATE TABLE `tour_share_room_children` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_share_room_id` int(11) NOT NULL,
  `child_age` varchar(5) NOT NULL,
  `extra_single_occupancy_adult` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_theme`
--

CREATE TABLE `tour_theme` (
  `tour_theme_id` int(11) NOT NULL AUTO_INCREMENT,
  `tour_id` int(11) NOT NULL,
  `theme_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`tour_theme_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `tour_type`
--

CREATE TABLE `tour_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tour_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`tour_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_calendar`
--

CREATE TABLE `tours_calendar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tours_id` int(11) NOT NULL,
  `start_date` datetime NOT NULL,
  `end_date` datetime NOT NULL,
  `available_status` int(11) NOT NULL,
  `entry_by` int(11) NOT NULL,
  `entry_date` datetime DEFAULT NULL,
  `modify_by` int(11) DEFAULT NULL,
  `modify_date` datetime DEFAULT NULL,
  `lang_flag` varchar(50) COLLATE utf8_unicode_ci DEFAULT 'en_US',
  PRIMARY KEY (`id`),
  KEY `tours_calendar_tour_id` (`tours_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_category`
--

CREATE TABLE `tours_category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_by` int(11) DEFAULT NULL,
  `tour_category_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_thumb` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_desc` text COLLATE utf8_unicode_ci,
  `category_order` int(11) DEFAULT '0',
  `cat_date` datetime DEFAULT NULL,
  `modify_date` datetime DEFAULT '0000-00-00 00:00:00',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci,
  `lang_flag` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tours_category_category_title` (`category_title`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_package_type`
--

CREATE TABLE `tours_package_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tour_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  `lang_flag` varchar(250) COLLATE utf8_unicode_ci DEFAULT 'en_US',
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`tour_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_page`
--

CREATE TABLE `tours_page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(11) DEFAULT '0',
  `created_by` int(11) DEFAULT NULL,
  `tours_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_operator` int(11) DEFAULT NULL,
  `tours_type` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT '0',
  `state_id` int(11) DEFAULT '0',
  `area_id` int(11) DEFAULT '0',
  `post_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `destination_cover` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `traveler_person` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `package_validity_from` date DEFAULT NULL,
  `package_validity_to` date DEFAULT NULL,
  `booking_validity_from` date DEFAULT NULL,
  `booking_validity_to` date DEFAULT NULL,
  `tour_type` tinyint(2) NOT NULL COMMENT '1-Private,2-Group Type',
  `tours_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `num_of_days` int(11) DEFAULT NULL,
  `num_of_nights` int(11) DEFAULT NULL,
  `rating` int(11) DEFAULT NULL,
  `tours_image_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tours_image` text COLLATE utf8_unicode_ci,
  `tours_price` double DEFAULT NULL,
  `infant_price` double NOT NULL DEFAULT '0',
  `price_type` enum('person','package') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'package',
  `tours_desc` longtext COLLATE utf8_unicode_ci,
  `tours_date` datetime DEFAULT NULL,
  `tours_order` int(11) DEFAULT '0',
  `related_items` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `featured` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0',
  `active` enum('1','0') COLLATE utf8_unicode_ci DEFAULT '1',
  `meta_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_keywords` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `meta_desc` text COLLATE utf8_unicode_ci,
  `duration` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `costs_of_children` double DEFAULT NULL,
  `location_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accommodates` int(11) DEFAULT NULL,
  `transportation` text COLLATE utf8_unicode_ci,
  `inclusions` text COLLATE utf8_unicode_ci,
  `exclusions` text COLLATE utf8_unicode_ci,
  `ending_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visiting_cities` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tour_policy` text COLLATE utf8_unicode_ci,
  `sightseeing` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `Pickup_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `supplementary_room` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `drop_off_service` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `terms_and_condition` text COLLATE utf8_unicode_ci,
  `scheduled_on` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery_primary` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `spots_photo_gallery` text COLLATE utf8_unicode_ci,
  `feature_google_map` text COLLATE utf8_unicode_ci,
  `tour_highlights` longtext COLLATE utf8_unicode_ci,
  `itinerary_title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itinerary_desc` longtext COLLATE utf8_unicode_ci,
  `available_expire_date` date DEFAULT '0000-00-00',
  `journey_start_date` date DEFAULT '0000-00-00',
  `entertainments` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `starting_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `multilingual_guide` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payment_desc` longtext COLLATE utf8_unicode_ci,
  `lang_flag` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `modify_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tours_page_title` (`tours_title`) USING BTREE,
  KEY `tours_page_category_id` (`category_id`) USING BTREE,
  KEY `tours_page_active` (`active`) USING BTREE,
  KEY `tours_page_featured` (`featured`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_preferences`
--

CREATE TABLE `tours_preferences` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `field_name` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `field_value` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tours_preference_name` (`field_name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_saved`
--

CREATE TABLE `tours_saved` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tours_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `tours_type`
--

CREATE TABLE `tours_type` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tour_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET latin1 NOT NULL,
  `lang_flag` varchar(250) COLLATE utf8_unicode_ci DEFAULT 'en_US',
  PRIMARY KEY (`id`),
  KEY `tours_type_business_type` (`tour_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Table structure for table `transport_routes_city`
--

CREATE TABLE `transport_routes_city` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transport_route_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `no_of_nights` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `transport_routes_vehicles`
--

CREATE TABLE `transport_routes_vehicles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transport_route_id` int(11) NOT NULL,
  `vehicle_type_id` int(11) NOT NULL,
  `vehicle_master_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `currency_id` int(11) NOT NULL,
  `cost` varchar(5) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `traveller`
--

CREATE TABLE `traveller` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `Booking_Id` int(11) NOT NULL,
  `Name` varchar(50) NOT NULL,
  `Mobile` int(11) NOT NULL,
  `Note` text NOT NULL,
  `CarType` varchar(50) NOT NULL,
  `BookingType` varchar(50) NOT NULL,
  `BookingDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `traveller_details`
--

CREATE TABLE `traveller_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `age` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_type_id` int(11) NOT NULL,
  `user_grade` varchar(5) DEFAULT NULL,
  `username` varchar(255) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `first_name` varchar(20) NOT NULL,
  `last_name` varchar(20) NOT NULL,
  `email` varchar(100) NOT NULL,
  `mobile_prefix` varchar(10) DEFAULT NULL,
  `mobile` varchar(50) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `gender` enum('Male','Female') DEFAULT NULL,
  `nationality` int(11) DEFAULT '0',
  `wallet_amount` double(10,2) DEFAULT '0.00',
  `gcm_id` text,
  `login_status` int(11) NOT NULL DEFAULT '0',
  `login_time` datetime DEFAULT NULL,
  `logout_time` datetime DEFAULT NULL,
  `login_otp_status` tinyint(2) DEFAULT '0' COMMENT '0-Off otp winodow, 1- On otp window',
  `email_verified` int(11) NOT NULL DEFAULT '0',
  `phone_verified` int(11) NOT NULL DEFAULT '0',
  `referral_key` varchar(50) DEFAULT NULL,
  `refer_by` varchar(50) DEFAULT NULL,
  `is_active` tinyint(2) DEFAULT '4' COMMENT '4-Inactive,1-Active,2-OnHold,3-Blacklist,5-unapproved',
  `duty_status` tinyint(2) NOT NULL DEFAULT '0',
  `newsletter_subscription` tinyint(2) NOT NULL DEFAULT '0',
  `mobile_promotion` tinyint(2) NOT NULL DEFAULT '0',
  `modified_by` int(11) DEFAULT NULL,
  `signup_status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_30-oct-19`
--

CREATE TABLE `user_30-oct-19` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_type_id` int(11) NOT NULL,
  `username` varchar(255) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `vendor_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `first_name` varchar(20) NOT NULL,
  `last_name` varchar(20) NOT NULL,
  `email` varchar(100) NOT NULL,
  `mobile` varchar(50) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `gender` enum('Male','Female') DEFAULT NULL,
  `nationality` int(11) DEFAULT '0',
  `token` varchar(255) DEFAULT NULL,
  `otp` varchar(50) DEFAULT NULL,
  `amount` double(10,2) DEFAULT NULL,
  `wallet_amount` double(10,2) DEFAULT '0.00',
  `latitude` varchar(50) DEFAULT NULL,
  `longitude` varchar(50) DEFAULT NULL,
  `imei` varchar(20) DEFAULT NULL,
  `msisdn` varchar(20) DEFAULT NULL,
  `gcm_id` text,
  `login_status` int(11) NOT NULL DEFAULT '0',
  `login_time` datetime DEFAULT NULL,
  `logout_time` datetime DEFAULT NULL,
  `login_otp_status` tinyint(2) DEFAULT '0' COMMENT '0-Off otp winodow, 1- On otp window',
  `email_verified` int(11) NOT NULL DEFAULT '0',
  `phone_verified` int(11) NOT NULL DEFAULT '0',
  `referral_key` varchar(50) DEFAULT NULL,
  `refer_by` varchar(50) DEFAULT NULL,
  `is_markup` int(11) DEFAULT NULL,
  `is_verified` int(11) DEFAULT NULL,
  `is_active` tinyint(2) DEFAULT '4' COMMENT '4-Inactive,1-Active,2-OnHold,3-Blacklist,5-unapproved',
  `duty_status` tinyint(2) NOT NULL DEFAULT '0',
  `modified_by` int(11) DEFAULT NULL,
  `signup_status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `updated_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_altno_tracking`
--

CREATE TABLE `user_altno_tracking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `alt_no` varchar(15) NOT NULL,
  `status` varchar(5) NOT NULL DEFAULT 'false',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `user_id` (`user_id`,`alt_no`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_assign_module`
--

CREATE TABLE `user_assign_module` (
  `assign_module_id` int(11) NOT NULL AUTO_INCREMENT,
  `assign_role_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`assign_module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_assign_role`
--

CREATE TABLE `user_assign_role` (
  `assign_role_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL DEFAULT '0',
  `department_id` int(11) DEFAULT '0',
  `created_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`assign_role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_basic_fare_settings`
--

CREATE TABLE `user_basic_fare_settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `rounding` tinyint(4) NOT NULL COMMENT '1-Cash,2-Account / Credit Card',
  `level` tinyint(4) NOT NULL COMMENT '1-Normal,2-Decimal,3-Unit',
  `direction` tinyint(4) NOT NULL COMMENT '1-Nearest,2-Upward,3-Downward',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_booking_type_mapping`
--

CREATE TABLE `user_booking_type_mapping` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `master_package_id` int(11) DEFAULT NULL COMMENT 'company table auto id',
  `master_package_mode_id` int(11) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='need to be delete, Duplicate enty add in company table';

--
-- Table structure for table `user_cancellation_fare`
--

CREATE TABLE `user_cancellation_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `booking_type` int(11) NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `from_date` datetime DEFAULT NULL,
  `to_date` datetime DEFAULT NULL,
  `days` varchar(10) NOT NULL DEFAULT '0',
  `hours` varchar(10) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_cancellation_fare_logs`
--

CREATE TABLE `user_cancellation_fare_logs` (
  `log_id` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `master_booking_type_id` int(11) DEFAULT NULL,
  `booking_type` int(11) NOT NULL,
  `cancellation_master_id` int(11) NOT NULL,
  `cancellation_type` varchar(10) NOT NULL,
  `cancellation_value` float NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted ',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_company_mapping`
--

CREATE TABLE `user_company_mapping` (
  `user_company_mapp_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `company_info_id` int(11) NOT NULL COMMENT 'company table auto id',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`user_company_mapp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='need to be delete, Duplicate enty add in company table';

--
-- Table structure for table `user_company_share`
--

CREATE TABLE `user_company_share` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `booking_type` int(11) DEFAULT NULL,
  `company_share_type` tinyint(4) DEFAULT NULL,
  `company_share_value` varchar(10) DEFAULT NULL,
  `partner_share_type` tinyint(4) DEFAULT NULL,
  `partner_share_value` varchar(10) DEFAULT NULL,
  `driver_share_type` tinyint(4) DEFAULT NULL,
  `driver_share_value` varchar(10) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_company_share_logs`
--

CREATE TABLE `user_company_share_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `share_type_id` tinyint(4) NOT NULL COMMENT '1-company,2-Partner,3-Driver',
  `share_value_type` tinyint(4) NOT NULL COMMENT '1-%,2-Rs',
  `share_value` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_credit_limit`
--

CREATE TABLE `user_credit_limit` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `credit_limit_amount` double(11,2) NOT NULL,
  `from_date` date DEFAULT NULL,
  `to_date` date DEFAULT NULL,
  `created_date` date NOT NULL,
  `modifed_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `approved_by` int(11) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `approved_status` tinyint(2) NOT NULL DEFAULT '0',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_current_location`
--

CREATE TABLE `user_current_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `current_latitude` varchar(100) DEFAULT '0',
  `current_longitude` varchar(100) DEFAULT '0',
  `distance` float NOT NULL DEFAULT '0',
  `datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_domain_package`
--

CREATE TABLE `user_domain_package` (
  `domain_package_id` int(11) NOT NULL AUTO_INCREMENT,
  `domain_register_id` int(11) NOT NULL,
  `package_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `ip` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`domain_package_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `user_domain_register`
--

CREATE TABLE `user_domain_register` (
  `domain_register_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_license_id` int(11) NOT NULL,
  `domain_name` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`domain_register_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `user_duty_pref`
--

CREATE TABLE `user_duty_pref` (
  `user_duty_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `package_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  PRIMARY KEY (`user_duty_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_extras`
--

CREATE TABLE `user_extras` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `extras_master_id` varchar(100) NOT NULL,
  `extra_value_type` varchar(10) DEFAULT NULL COMMENT '%, Rs',
  `extra_value` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_extras_logs`
--

CREATE TABLE `user_extras_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `extras_master_id` varchar(100) NOT NULL,
  `extra_value_type` varchar(10) DEFAULT NULL COMMENT '%, Rs',
  `extra_value` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_fix_route`
--

CREATE TABLE `user_fix_route` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `frequent_location` varchar(30) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_fix_route_logs`
--

CREATE TABLE `user_fix_route_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `frequent_location` varchar(30) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_grade`
--

CREATE TABLE `user_grade` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `grade_name` varchar(255) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_info`
--

CREATE TABLE `user_info` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `alternate_mobile` varchar(20) COLLATE latin1_general_cs DEFAULT NULL,
  `alternate_email` varchar(111) COLLATE latin1_general_cs DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `father_name` varchar(100) COLLATE latin1_general_cs DEFAULT NULL,
  `address` text COLLATE latin1_general_cs,
  `address2` varchar(100) COLLATE latin1_general_cs DEFAULT NULL,
  `pincode` int(11) DEFAULT NULL,
  `landline_number` varchar(111) COLLATE latin1_general_cs DEFAULT NULL,
  `gst_registration_number` varchar(100) COLLATE latin1_general_cs DEFAULT NULL,
  `kyc_type` int(11) DEFAULT NULL,
  `kyc` varchar(25) COLLATE latin1_general_cs DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;

--
-- Table structure for table `user_ip_location`
--

CREATE TABLE `user_ip_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ip_address` varchar(50) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `region` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `lat` varchar(50) DEFAULT NULL,
  `log` varchar(50) NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='User Ip address get location and store ';

--
-- Table structure for table `user_language`
--

CREATE TABLE `user_language` (
  `user_lang_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `language_id` int(11) NOT NULL,
  `language_type` enum('Read','Write','Speak') DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`user_lang_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_license`
--

CREATE TABLE `user_license` (
  `user_license_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `owner_name` varchar(255) DEFAULT NULL,
  `owner_email` varchar(225) DEFAULT NULL,
  `owner_mobile` varchar(15) DEFAULT NULL,
  `owner_address` text,
  `license_key` varchar(255) NOT NULL,
  `license_start_date` date DEFAULT NULL,
  `license_end_date` date DEFAULT NULL,
  `no_of_domain` int(11) DEFAULT NULL,
  `package_id` int(11) NOT NULL,
  `license_option` varchar(50) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `ip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`user_license_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Table structure for table `user_location`
--

CREATE TABLE `user_location` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT '0',
  `lat` varchar(100) DEFAULT '0',
  `longi` varchar(100) DEFAULT '0',
  `datetime` timestamp NULL DEFAULT NULL,
  `distance` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_markup`
--

CREATE TABLE `user_markup` (
  `user_markup_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `country_id` int(11) NOT NULL,
  `state_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `booking_type_id` int(11) NOT NULL,
  `vehicle_type_id` int(3) NOT NULL,
  `basic_amt` int(5) NOT NULL,
  `per_km_rate` int(2) NOT NULL,
  `per_hr_rate` int(2) NOT NULL,
  `markup_type_id` int(11) NOT NULL,
  `markup_amount` varchar(255) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`user_markup_id`),
  KEY `user_id` (`state_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_membership`
--

CREATE TABLE `user_membership` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `subpackage_id` int(11) NOT NULL DEFAULT '1',
  `membership_status` int(11) NOT NULL,
  `package_start_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `package_end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `profile_view` int(11) NOT NULL DEFAULT '0',
  `contact_view` int(11) NOT NULL DEFAULT '0',
  `send_request` int(11) NOT NULL DEFAULT '0',
  `is_active` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_night_charge`
--

CREATE TABLE `user_night_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `night_rate_begins` time NOT NULL DEFAULT '00:00:00',
  `night_rate_ends` time NOT NULL DEFAULT '00:00:00',
  `night_rate_type` varchar(10) DEFAULT NULL COMMENT '1-%,2-Rs',
  `night_rate_value` varchar(10) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_night_charge_logs`
--

CREATE TABLE `user_night_charge_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL COMMENT 'base_vehicle_type(table Auto id)',
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `night_rate_begins` time NOT NULL DEFAULT '00:00:00',
  `night_rate_ends` time NOT NULL DEFAULT '00:00:00',
  `night_rate_type` varchar(10) DEFAULT NULL COMMENT '1-%,2-Rs',
  `night_rate_value` varchar(10) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` date NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_payment_type`
--

CREATE TABLE `user_payment_type` (
  `user_payment_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `payment_type_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  PRIMARY KEY (`user_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_peak_time_charge`
--

CREATE TABLE `user_peak_time_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `peaktime_type` varchar(10) NOT NULL DEFAULT '%',
  `peaktime_value` int(5) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_peak_time_charge_logs`
--

CREATE TABLE `user_peak_time_charge_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `peaktime_type` varchar(10) NOT NULL DEFAULT '%',
  `peaktime_value` int(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_postalcode_fare`
--

CREATE TABLE `user_postalcode_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `pickup_postcode` text NOT NULL,
  `drop_postcode` text NOT NULL,
  `price` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_postalcode_fare_logs`
--

CREATE TABLE `user_postalcode_fare_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `pickup_postcode` text NOT NULL,
  `drop_postcode` text NOT NULL,
  `price` varchar(10) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_pre_waiting_charge`
--

CREATE TABLE `user_pre_waiting_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `pre_waiting_upto_minutes` text NOT NULL,
  `pre_waiting_fees` varchar(5) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_pre_waiting_charge_logs`
--

CREATE TABLE `user_pre_waiting_charge_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `pre_waiting_upto_minutes` text NOT NULL,
  `pre_waiting_fees` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_pref_drive_city`
--

CREATE TABLE `user_pref_drive_city` (
  `user_drive_city_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `city_id` int(11) NOT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`user_drive_city_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_premiums_fare`
--

CREATE TABLE `user_premiums_fare` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `premiums_type` varchar(10) NOT NULL COMMENT '1-%,2-Rs',
  `premiums_value` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_premiums_fare_logs`
--

CREATE TABLE `user_premiums_fare_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `premiums_type` varchar(10) NOT NULL COMMENT '1-%,2-Rs',
  `premiums_value` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('1','0') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_rating`
--

CREATE TABLE `user_rating` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `BookingId` int(11) DEFAULT NULL,
  `DriverId` int(11) DEFAULT NULL,
  `UserId` int(11) DEFAULT NULL,
  `Rating` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `BookingId` (`BookingId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_relation_manager`
--

CREATE TABLE `user_relation_manager` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `staff_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_role`
--

CREATE TABLE `user_role` (
  `Role_ID` int(11) NOT NULL AUTO_INCREMENT,
  `role_type` int(11) NOT NULL,
  `RoleName` varchar(50) NOT NULL,
  `CreatedBy` int(11) NOT NULL DEFAULT '0' COMMENT 'User ID from User Table',
  `ModifiedDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `IsDeleted` tinyint(1) NOT NULL DEFAULT '0',
  `IsApproved` tinyint(1) NOT NULL DEFAULT '0',
  `IsActive` int(11) NOT NULL DEFAULT '1' COMMENT '1=Active,2=InActive',
  `ApprovedBy` int(11) NOT NULL DEFAULT '0' COMMENT 'UID',
  `RoleDescription` varchar(200) NOT NULL,
  `created_date` datetime NOT NULL,
  PRIMARY KEY (`Role_ID`),
  KEY `role_type` (`role_type`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_role_vendor`
--

CREATE TABLE `user_role_vendor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type_id` int(11) NOT NULL,
  `user_role_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_signature`
--

CREATE TABLE `user_signature` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `signature` longtext NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `ip` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_transaction`
--

CREATE TABLE `user_transaction` (
  `booking_trans_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_id` int(11) DEFAULT '0',
  `payment_upload_id` int(11) DEFAULT '0',
  `payment_response_id` int(11) DEFAULT NULL COMMENT 'payment_transaction_response auto id',
  `booking_transaction_no` varchar(150) DEFAULT NULL COMMENT 'comnpany generated tranasction no',
  `action_type` varchar(10) DEFAULT NULL,
  `amount` double(10,2) NOT NULL,
  `current_balance` double(10,2) DEFAULT '0.00',
  `payment_type_id` tinyint(1) DEFAULT NULL COMMENT 'Cash,Credit,Cheque etc...',
  `payment_status` tinyint(2) DEFAULT NULL COMMENT '1-Success,2-Failed',
  `created_date` date NOT NULL,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `status` varchar(50) DEFAULT NULL,
  `reason` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`booking_trans_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_type_role`
--

CREATE TABLE `user_type_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `booking_type_id` int(11) NOT NULL,
  `user_role_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_upload_document`
--

CREATE TABLE `user_upload_document` (
  `upload_doc_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `document_type_id` int(11) NOT NULL,
  `doc_file_upload` text NOT NULL,
  `doc_approval_status` tinyint(2) NOT NULL DEFAULT '0',
  `doc_default_status` tinyint(2) NOT NULL DEFAULT '0',
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`upload_doc_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_vehicle_mapping`
--

CREATE TABLE `user_vehicle_mapping` (
  `user_vehicle_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `vehicle_master_id` int(11) DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active',
  PRIMARY KEY (`user_vehicle_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_waiting_charge`
--

CREATE TABLE `user_waiting_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `booking_type` int(11) NOT NULL DEFAULT '0',
  `waiting_minute_upto` varchar(5) NOT NULL,
  `waiting_fees` varchar(5) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_waiting_charge_logs`
--

CREATE TABLE `user_waiting_charge_logs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `waiting_minute_upto` varchar(5) NOT NULL,
  `waiting_fees` varchar(5) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_wallet_transaction`
--

CREATE TABLE `user_wallet_transaction` (
  `wallet_trans_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `amount` double(10,2) NOT NULL,
  `expiry_date` date NOT NULL,
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` tinyint(4) NOT NULL,
  PRIMARY KEY (`wallet_trans_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_weekoff_mapping`
--

CREATE TABLE `user_weekoff_mapping` (
  `user_weekoff_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `week_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modify_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`user_weekoff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `user_workingshift_mapping`
--

CREATE TABLE `user_workingshift_mapping` (
  `user_workingshift_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `working_shift_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) NOT NULL,
  `modify_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`user_workingshift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `usertype_module`
--

CREATE TABLE `usertype_module` (
  `rule_id` int(11) NOT NULL AUTO_INCREMENT,
  `usertype_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `is_read` tinyint(2) DEFAULT NULL,
  `is_write` tinyint(2) DEFAULT NULL,
  `is_delete` int(11) NOT NULL,
  `order_menu` int(11) DEFAULT '0',
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `usertype_module_backup`
--

CREATE TABLE `usertype_module_backup` (
  `rule_id` int(11) NOT NULL AUTO_INCREMENT,
  `usertype_id` int(11) NOT NULL,
  `module_id` int(11) NOT NULL,
  `is_read` tinyint(2) DEFAULT NULL,
  `is_write` tinyint(2) DEFAULT NULL,
  `is_delete` int(11) NOT NULL,
  `order_menu` int(11) DEFAULT '0',
  `created_by` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1',
  PRIMARY KEY (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vehicle_amenities`
--

CREATE TABLE `vehicle_amenities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vehicle_master_id` int(11) NOT NULL,
  `amenities_id` int(11) NOT NULL,
  `created_date` date NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vehicle_master`
--

CREATE TABLE `vehicle_master` (
  `vehicle_master_id` int(11) NOT NULL AUTO_INCREMENT,
  `id` int(11) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL,
  `ignition_type_id` int(11) DEFAULT NULL,
  `permit_exp_date` date DEFAULT NULL,
  `color` varchar(255) DEFAULT NULL,
  `vehicle_no` varchar(50) DEFAULT NULL,
  `vehicle_owner_type` enum('Owned','Attached') DEFAULT NULL,
  `vehicle_owner_name` varchar(100) DEFAULT NULL,
  `vehicle_owner_mobile` varchar(15) DEFAULT NULL,
  `passenger` tinyint(4) NOT NULL DEFAULT '0',
  `large_suitcase` tinyint(2) NOT NULL DEFAULT '0',
  `small_suitcase` tinyint(2) NOT NULL DEFAULT '0',
  `insurance_validity` date DEFAULT NULL,
  `created_date` datetime NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0-unpublish,1-publish,2-delete',
  PRIMARY KEY (`vehicle_master_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vendor`
--

CREATE TABLE `vendor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `UID` int(11) NOT NULL,
  `vendor_name` varchar(50) NOT NULL,
  `vendor_email` varchar(50) NOT NULL,
  `group_name` varchar(50) NOT NULL,
  `status` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vendor_bill`
--

CREATE TABLE `vendor_bill` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `BookingID` int(11) NOT NULL COMMENT 'Reference for Booking Register',
  `waitingCharge` varchar(50) NOT NULL COMMENT 'Charges to be paid',
  `tripCharge` float NOT NULL COMMENT 'Reason for charge',
  `minimumCharge` int(11) NOT NULL COMMENT 'Driver/csr',
  `totalBill` double NOT NULL,
  `AddedTime` datetime NOT NULL COMMENT 'Server Time',
  `is_paid` int(11) NOT NULL,
  `balance_amt` double(10,2) NOT NULL DEFAULT '0.00',
  `paid_at` datetime NOT NULL,
  `currency` varchar(11) NOT NULL,
  `invoice_number` varchar(100) DEFAULT NULL,
  `payment_type` varchar(20) NOT NULL,
  `fees` int(11) NOT NULL,
  `total_price` int(11) NOT NULL,
  `total_tax_price` int(11) NOT NULL,
  `distance_rate` int(11) NOT NULL,
  `duration_rate` int(11) NOT NULL,
  `starting_rate` int(11) NOT NULL,
  `base_price` int(11) NOT NULL,
  `tax_price` int(11) NOT NULL,
  `starting_charge` int(11) NOT NULL,
  `distance_charge` int(11) NOT NULL,
  `duration_charge` int(11) NOT NULL,
  `minimum_distance` int(11) NOT NULL,
  `cancellation_price` int(11) NOT NULL,
  `companyshare` int(11) NOT NULL,
  `drivershare` int(11) NOT NULL,
  `partnershare` int(50) NOT NULL,
  `minimum_price` int(11) DEFAULT NULL,
  `extracharges` int(11) NOT NULL,
  `nightcharge_unit` varchar(10) NOT NULL,
  `nightcharge` varchar(5) NOT NULL,
  `nightcharge_price` varchar(5) NOT NULL,
  `night_rate_begins` varchar(5) NOT NULL,
  `night_rate_ends` varchar(5) NOT NULL,
  `extras` text NOT NULL,
  `extraPrice` int(11) NOT NULL,
  `peakTimePrice` int(11) NOT NULL,
  `peaktimeFrom` time NOT NULL,
  `peaktimeTo` time NOT NULL,
  `peaktimepercentage` varchar(3) NOT NULL,
  `basic_tax` varchar(5) NOT NULL,
  `basic_tax_type` varchar(10) NOT NULL,
  `basic_tax_price` varchar(5) NOT NULL,
  `pre_waiting_time` time NOT NULL,
  `pre_waiting_charge` int(11) NOT NULL,
  `waiting_time` time NOT NULL,
  `waiting_charge` int(11) NOT NULL,
  `krishikalyan_tax` int(11) NOT NULL,
  `swachhbharat_tax` int(11) NOT NULL,
  `krishikalyan_tax_price` int(11) NOT NULL,
  `swachhbharat_tax_price` int(11) NOT NULL,
  `estimated_price_before_markup` int(11) NOT NULL,
  `markup_type` varchar(5) NOT NULL,
  `markup_value` int(11) NOT NULL,
  `markup_price` int(11) NOT NULL,
  `driver_share_amt` int(11) NOT NULL,
  `comp_share_amt` int(11) NOT NULL,
  `partner_share_amt` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `BookingID` (`BookingID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vendor_charges`
--

CREATE TABLE `vendor_charges` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `BookingID` int(11) NOT NULL COMMENT 'Reference for Booking Register',
  `waitingCharge` varchar(50) NOT NULL COMMENT 'Charges to be paid',
  `tripCharge` float NOT NULL COMMENT 'Reason for charge',
  `minimumCharge` int(11) NOT NULL COMMENT 'Driver/csr',
  `totalBill` double NOT NULL,
  `AddedTime` datetime NOT NULL COMMENT 'Server Time',
  `is_paid` int(11) NOT NULL,
  `balance_amt` double(10,2) NOT NULL DEFAULT '0.00',
  `paid_at` datetime NOT NULL,
  `currency` varchar(11) NOT NULL,
  `invoice_number` varchar(100) DEFAULT NULL,
  `payment_type` varchar(20) NOT NULL,
  `fees` int(11) NOT NULL,
  `total_price` int(11) NOT NULL,
  `total_tax_price` int(11) NOT NULL,
  `distance_rate` int(11) NOT NULL,
  `duration_rate` int(11) NOT NULL,
  `starting_rate` int(11) NOT NULL,
  `base_price` int(11) NOT NULL,
  `tax_price` int(11) NOT NULL,
  `starting_charge` int(11) NOT NULL,
  `distance_charge` int(11) NOT NULL,
  `duration_charge` int(11) NOT NULL,
  `minimum_distance` int(11) NOT NULL,
  `cancellation_price` int(11) NOT NULL,
  `minimum_price` int(11) DEFAULT NULL,
  `extracharges` int(11) NOT NULL,
  `nightcharge_unit` varchar(10) NOT NULL,
  `nightcharge` varchar(5) NOT NULL,
  `nightcharge_price` varchar(5) NOT NULL,
  `night_rate_begins` varchar(5) NOT NULL,
  `night_rate_ends` varchar(5) NOT NULL,
  `extras` text NOT NULL,
  `extraPrice` int(11) NOT NULL,
  `peakTimePrice` int(11) NOT NULL,
  `peaktimeFrom` time NOT NULL,
  `peaktimeTo` time NOT NULL,
  `peaktimepercentage` varchar(3) NOT NULL,
  `basic_tax` varchar(5) NOT NULL,
  `basic_tax_type` varchar(10) NOT NULL,
  `basic_tax_price` varchar(5) NOT NULL,
  `pre_waiting_time` time NOT NULL,
  `pre_waiting_charge` int(11) NOT NULL,
  `waiting_time` time NOT NULL,
  `waiting_charge` int(11) NOT NULL,
  `estimated_price_before_markup` int(11) NOT NULL,
  `markup_type` varchar(5) NOT NULL,
  `markup_value` int(11) NOT NULL,
  `markup_price` int(11) NOT NULL,
  `driver_share_amt` int(11) NOT NULL,
  `comp_share_amt` int(11) NOT NULL,
  `partner_share_amt` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `BookingID` (`BookingID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vendor_markup`
--

CREATE TABLE `vendor_markup` (
  `vendor_markup_id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `vendor_id` int(11) NOT NULL,
  `base_comb_id` int(11) DEFAULT NULL,
  `markup_category` int(11) DEFAULT NULL COMMENT '1-user,2-Booking Type,3-Country,4-City',
  `mark_amt_type` varchar(10) DEFAULT NULL COMMENT '''%'',''Rs''',
  `basic_amt` int(5) NOT NULL,
  `per_km_rate` int(2) NOT NULL,
  `per_hr_rate` int(2) NOT NULL,
  `markup_type_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) NOT NULL,
  `modified_by` int(11) NOT NULL,
  `status` enum('0','1') NOT NULL,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`vendor_markup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `vendor_status`
--

CREATE TABLE `vendor_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `booking_id` int(11) NOT NULL DEFAULT '0',
  `vendor_status` int(11) NOT NULL DEFAULT '0',
  `start_date` datetime DEFAULT NULL,
  `end_date` datetime DEFAULT NULL,
  `started_time` time DEFAULT NULL,
  `estimated_end_time` time DEFAULT NULL,
  `created_by` int(11) NOT NULL DEFAULT '0',
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Temporary table structure for view `view_booking_charge`
--

/*!50001 DROP VIEW IF EXISTS `view_booking_charge`*/;
/*!50001 CREATE VIEW `view_booking_charge` AS SELECT 
 1 AS `id`,
 1 AS `BookingID`,
 1 AS `waitingCharge`,
 1 AS `tripCharge`,
 1 AS `minimumCharge`,
 1 AS `totalBill`,
 1 AS `AddedTime`,
 1 AS `is_paid`,
 1 AS `billing_status`,
 1 AS `paid_at`,
 1 AS `currency`,
 1 AS `booking_invoice_id`,
 1 AS `invoice_number`,
 1 AS `payment_type`,
 1 AS `fees`,
 1 AS `total_price`,
 1 AS `total_tax_price`,
 1 AS `distance_rate`,
 1 AS `duration_rate`,
 1 AS `starting_rate`,
 1 AS `base_price`,
 1 AS `tax_price`,
 1 AS `starting_charge`,
 1 AS `distance_charge`,
 1 AS `duration_charge`,
 1 AS `minimum_distance`,
 1 AS `cancellation_price`,
 1 AS `companyshare`,
 1 AS `drivershare`,
 1 AS `partnershare`,
 1 AS `minimum_price`,
 1 AS `extracharges`,
 1 AS `nightcharge_unit`,
 1 AS `nightcharge`,
 1 AS `nightcharge_price`,
 1 AS `night_rate_begins`,
 1 AS `night_rate_ends`,
 1 AS `extras`,
 1 AS `extraPrice`,
 1 AS `peakTimePrice`,
 1 AS `peak_time_value`,
 1 AS `basic_tax`,
 1 AS `basic_tax_type`,
 1 AS `basic_tax_price`,
 1 AS `pre_waiting_time`,
 1 AS `pre_waiting_charge`,
 1 AS `waiting_time`,
 1 AS `waiting_charge`,
 1 AS `igst_tax`,
 1 AS `cgst_tax`,
 1 AS `sgst_tax`,
 1 AS `estimated_price_before_markup`,
 1 AS `markup_type`,
 1 AS `markup_value`,
 1 AS `markup_price`,
 1 AS `driver_share_amt`,
 1 AS `comp_share_amt`,
 1 AS `partner_share_amt`,
 1 AS `reference_number`,
 1 AS `user_id`,
 1 AS `user_type_id`,
 1 AS `email`,
 1 AS `mobile`,
 1 AS `address`,
 1 AS `pincode`,
 1 AS `landline_number`,
 1 AS `gst_registration_number`,
 1 AS `pancard_no`,
 1 AS `user_type`,
 1 AS `username`,
 1 AS `client_id`,
 1 AS `client_name`,
 1 AS `package_name`,
 1 AS `package_mode`,
 1 AS `outstation_module_type`,
 1 AS `estimateprice_before_discount`,
 1 AS `discount_price`,
 1 AS `estimated_final_price`,
 1 AS `approx_distance_charge`,
 1 AS `approx_after_km`,
 1 AS `approx_waiting_charge`,
 1 AS `approx_waiting_minute`,
 1 AS `vehicle_name`,
 1 AS `vehicle_type`,
 1 AS `actual_distance`,
 1 AS `actual_time`,
 1 AS `booking_amt_paid`,
 1 AS `booking_amt_balance`*/;

--
-- Temporary table structure for view `view_company_vendor_driver`
--

/*!50001 DROP VIEW IF EXISTS `view_company_vendor_driver`*/;
/*!50001 CREATE VIEW `view_company_vendor_driver` AS SELECT 
 1 AS `id`,
 1 AS `user_type_id`,
 1 AS `user_type`,
 1 AS `first_name`,
 1 AS `last_name`,
 1 AS `email`,
 1 AS `mobile`,
 1 AS `parent_id`,
 1 AS `company_id`,
 1 AS `is_active`,
 1 AS `com_name`,
 1 AS `child_user_id`,
 1 AS `child_name`,
 1 AS `child_email`,
 1 AS `child_mobile`,
 1 AS `child_usertype_id`,
 1 AS `child_user_type`*/;

--
-- Temporary table structure for view `view_driver_vehicle_map`
--

/*!50001 DROP VIEW IF EXISTS `view_driver_vehicle_map`*/;
/*!50001 CREATE VIEW `view_driver_vehicle_map` AS SELECT 
 1 AS `user_id`,
 1 AS `gcm_id`,
 1 AS `driver_name`,
 1 AS `company_id`,
 1 AS `vendor_id`,
 1 AS `mobile`,
 1 AS `email`,
 1 AS `state_name`,
 1 AS `state_id`,
 1 AS `city_name`,
 1 AS `city_id`,
 1 AS `driver_status`,
 1 AS `mapping_id`,
 1 AS `vehicle_type`,
 1 AS `vehicle_type_color`,
 1 AS `vehicle_type_id`,
 1 AS `vehicle_name`,
 1 AS `vehicle_model_id`,
 1 AS `vehicle_color`,
 1 AS `vehicle_master_id`,
 1 AS `created_by`,
 1 AS `vehicle_no`,
 1 AS `model_year`,
 1 AS `color`,
 1 AS `vehicle_owner_type`,
 1 AS `owner_name`,
 1 AS `owner_mobile`,
 1 AS `permit_expiry_date`,
 1 AS `passenger`,
 1 AS `large_suitcase`,
 1 AS `small_suitcase`,
 1 AS `fuel_type`*/;

--
-- Temporary table structure for view `view_vehicle_fare_details`
--

/*!50001 DROP VIEW IF EXISTS `view_vehicle_fare_details`*/;
/*!50001 CREATE VIEW `view_vehicle_fare_details` AS SELECT 
 1 AS `base_combination_id`,
 1 AS `bs_status`,
 1 AS `company_id`,
 1 AS `vendor_id`,
 1 AS `company_setup_name`,
 1 AS `country_id`,
 1 AS `country_name`,
 1 AS `state_id`,
 1 AS `state_name`,
 1 AS `city_id`,
 1 AS `city_name`,
 1 AS `master_package_id`,
 1 AS `package_name`,
 1 AS `master_package_mode_id`,
 1 AS `package_mode`,
 1 AS `date_from`,
 1 AS `date_to`,
 1 AS `rate_type`,
 1 AS `rate_value`,
 1 AS `week_days`,
 1 AS `vendor_name`,
 1 AS `client_name`,
 1 AS `vehicle_type`,
 1 AS `dispatch_location_id`,
 1 AS `user_id`,
 1 AS `base_comb_id`,
 1 AS `type_of_dispatch`,
 1 AS `garage_type`,
 1 AS `address`,
 1 AS `city`,
 1 AS `pincode`,
 1 AS `created_date`,
 1 AS `created_by`,
 1 AS `status`,
 1 AS `distance_minimum_charge`,
 1 AS `distance_minimum_distance`,
 1 AS `distance_per_km_charge`,
 1 AS `hourly_minimum_charge`,
 1 AS `hourly_minimum_hrs`,
 1 AS `hourly_per_hr_charge`,
 1 AS `dist_waiting_minimum_charge`,
 1 AS `dist_waiting_minimum_distance`,
 1 AS `dist_waiting_per_km_charge`,
 1 AS `dist_waiting_waiting_fees`,
 1 AS `dist_hour_minimum_charge`,
 1 AS `dist_hour_minimum_distance`,
 1 AS `dist_hour_minimum_hrs`,
 1 AS `dist_hour_per_km_charge`,
 1 AS `dist_hour_per_hr_charge`,
 1 AS `company_share_type`,
 1 AS `company_share`*/;

--
-- Temporary table structure for view `view_wallet_point`
--

/*!50001 DROP VIEW IF EXISTS `view_wallet_point`*/;
/*!50001 CREATE VIEW `view_wallet_point` AS SELECT 
 1 AS `user_id`,
 1 AS `username`,
 1 AS `referral_key`,
 1 AS `referal_id`,
 1 AS `referal_by`,
 1 AS `user_amount`,
 1 AS `referer_amount`,
 1 AS `created`*/;

--
-- Table structure for table `voucher`
--

CREATE TABLE `voucher` (
  `voucher_id` int(11) NOT NULL AUTO_INCREMENT,
  `invoice_id` int(11) NOT NULL,
  `voucher_type` int(11) NOT NULL,
  `voucher_no_auto` varchar(50) NOT NULL,
  `voucher_no` varchar(50) NOT NULL COMMENT 'Manual voucher id ',
  `voucher_date` date NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  PRIMARY KEY (`voucher_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `voucher_detail`
--

CREATE TABLE `voucher_detail` (
  `voucher_detail_id` int(11) NOT NULL AUTO_INCREMENT,
  `voucher_id` int(11) NOT NULL,
  `booking_charge_id` int(11) NOT NULL,
  `amount` int(11) NOT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `created_date` datetime NOT NULL,
  PRIMARY KEY (`voucher_detail_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `waiting_charge`
--

CREATE TABLE `waiting_charge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `base_vehicle_id` int(11) NOT NULL,
  `waiting_minute_upto` varchar(5) NOT NULL,
  `waiting_fees` varchar(5) NOT NULL,
  `created_by` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '0',
  `status` tinyint(2) NOT NULL DEFAULT '1',
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `wallet_point_conversion`
--

CREATE TABLE `wallet_point_conversion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `master_package_id` int(11) DEFAULT NULL,
  `user_type_id` int(11) DEFAULT NULL,
  `user_grade_id` int(11) DEFAULT NULL,
  `points` int(11) DEFAULT NULL,
  `conversion_rate` int(11) DEFAULT NULL,
  `created_date` datetime DEFAULT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '0-Inactive,1-Active,2-Deleted',
  `ip` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `web_admin`
--

CREATE TABLE `web_admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) NOT NULL,
  `password` varchar(200) NOT NULL,
  `full_name` varchar(255) NOT NULL,
  `mobile_no` varchar(15) NOT NULL,
  `email` varchar(100) NOT NULL,
  `address` text NOT NULL,
  `country` int(11) NOT NULL,
  `state` int(11) NOT NULL,
  `city` int(11) NOT NULL,
  `pincode` varchar(6) NOT NULL,
  `role_type` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  `IsActive` int(11) NOT NULL DEFAULT '1' COMMENT '1=Active,2=InActive',
  `region` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `manage_jobs` tinyint(4) NOT NULL,
  `manage_client` tinyint(4) NOT NULL,
  `manage_driver` tinyint(4) NOT NULL,
  `manage_driver_groups` tinyint(4) NOT NULL,
  `manage_tracking` tinyint(4) NOT NULL,
  `manage_complaint` tinyint(4) NOT NULL,
  `manage_fair` tinyint(4) NOT NULL,
  `manage_reports` tinyint(4) NOT NULL,
  `manage_promotion` tinyint(4) NOT NULL,
  `manage_device` tinyint(4) NOT NULL,
  `manage_vehicle` tinyint(4) NOT NULL,
  `manage_enquiry` tinyint(4) NOT NULL,
  `manage_role` tinyint(4) NOT NULL,
  `manage_user` tinyint(4) NOT NULL,
  `mange_driver_payment` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `wishlist`
--

CREATE TABLE `wishlist` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `city_id` int(11) DEFAULT NULL,
  `mapping_id` int(11) NOT NULL,
  `bkg_type_id` int(11) NOT NULL,
  `created_date` datetime NOT NULL,
  `modified_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `ip` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Table structure for table `wrong_address`
--

CREATE TABLE `wrong_address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `address` varchar(50) DEFAULT NULL,
  `area` varchar(50) DEFAULT NULL,
  `zone` varchar(50) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `state` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `latitude` varchar(50) DEFAULT NULL,
  `longitude` varchar(50) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping events for database 'bookingcabs_local'
--

--
-- Dumping routines for database 'bookingcabs_local'
--

--
-- Current Database: `bookingcabs_local`
--


--
-- Final view structure for view `view_booking_charge`
--

/*!50001 DROP VIEW IF EXISTS `view_booking_charge`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_booking_charge` AS select 1 AS `id`,1 AS `BookingID`,1 AS `waitingCharge`,1 AS `tripCharge`,1 AS `minimumCharge`,1 AS `totalBill`,1 AS `AddedTime`,1 AS `is_paid`,1 AS `billing_status`,1 AS `paid_at`,1 AS `currency`,1 AS `booking_invoice_id`,1 AS `invoice_number`,1 AS `payment_type`,1 AS `fees`,1 AS `total_price`,1 AS `total_tax_price`,1 AS `distance_rate`,1 AS `duration_rate`,1 AS `starting_rate`,1 AS `base_price`,1 AS `tax_price`,1 AS `starting_charge`,1 AS `distance_charge`,1 AS `duration_charge`,1 AS `minimum_distance`,1 AS `cancellation_price`,1 AS `companyshare`,1 AS `drivershare`,1 AS `partnershare`,1 AS `minimum_price`,1 AS `extracharges`,1 AS `nightcharge_unit`,1 AS `nightcharge`,1 AS `nightcharge_price`,1 AS `night_rate_begins`,1 AS `night_rate_ends`,1 AS `extras`,1 AS `extraPrice`,1 AS `peakTimePrice`,1 AS `peak_time_value`,1 AS `basic_tax`,1 AS `basic_tax_type`,1 AS `basic_tax_price`,1 AS `pre_waiting_time`,1 AS `pre_waiting_charge`,1 AS `waiting_time`,1 AS `waiting_charge`,1 AS `igst_tax`,1 AS `cgst_tax`,1 AS `sgst_tax`,1 AS `estimated_price_before_markup`,1 AS `markup_type`,1 AS `markup_value`,1 AS `markup_price`,1 AS `driver_share_amt`,1 AS `comp_share_amt`,1 AS `partner_share_amt`,1 AS `reference_number`,1 AS `user_id`,1 AS `user_type_id`,1 AS `email`,1 AS `mobile`,1 AS `address`,1 AS `pincode`,1 AS `landline_number`,1 AS `gst_registration_number`,1 AS `pancard_no`,1 AS `user_type`,1 AS `username`,1 AS `client_id`,1 AS `client_name`,1 AS `package_name`,1 AS `package_mode`,1 AS `outstation_module_type`,1 AS `estimateprice_before_discount`,1 AS `discount_price`,1 AS `estimated_final_price`,1 AS `approx_distance_charge`,1 AS `approx_after_km`,1 AS `approx_waiting_charge`,1 AS `approx_waiting_minute`,1 AS `vehicle_name`,1 AS `vehicle_type`,1 AS `actual_distance`,1 AS `actual_time`,1 AS `booking_amt_paid`,1 AS `booking_amt_balance` */;

--
-- Final view structure for view `view_company_vendor_driver`
--

/*!50001 DROP VIEW IF EXISTS `view_company_vendor_driver`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_company_vendor_driver` AS select 1 AS `id`,1 AS `user_type_id`,1 AS `user_type`,1 AS `first_name`,1 AS `last_name`,1 AS `email`,1 AS `mobile`,1 AS `parent_id`,1 AS `company_id`,1 AS `is_active`,1 AS `com_name`,1 AS `child_user_id`,1 AS `child_name`,1 AS `child_email`,1 AS `child_mobile`,1 AS `child_usertype_id`,1 AS `child_user_type` */;

--
-- Final view structure for view `view_driver_vehicle_map`
--

/*!50001 DROP VIEW IF EXISTS `view_driver_vehicle_map`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_driver_vehicle_map` AS select 1 AS `user_id`,1 AS `gcm_id`,1 AS `driver_name`,1 AS `company_id`,1 AS `vendor_id`,1 AS `mobile`,1 AS `email`,1 AS `state_name`,1 AS `state_id`,1 AS `city_name`,1 AS `city_id`,1 AS `driver_status`,1 AS `mapping_id`,1 AS `vehicle_type`,1 AS `vehicle_type_color`,1 AS `vehicle_type_id`,1 AS `vehicle_name`,1 AS `vehicle_model_id`,1 AS `vehicle_color`,1 AS `vehicle_master_id`,1 AS `created_by`,1 AS `vehicle_no`,1 AS `model_year`,1 AS `color`,1 AS `vehicle_owner_type`,1 AS `owner_name`,1 AS `owner_mobile`,1 AS `permit_expiry_date`,1 AS `passenger`,1 AS `large_suitcase`,1 AS `small_suitcase`,1 AS `fuel_type` */;

--
-- Final view structure for view `view_vehicle_fare_details`
--

/*!50001 DROP VIEW IF EXISTS `view_vehicle_fare_details`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_vehicle_fare_details` AS select 1 AS `base_combination_id`,1 AS `bs_status`,1 AS `company_id`,1 AS `vendor_id`,1 AS `company_setup_name`,1 AS `country_id`,1 AS `country_name`,1 AS `state_id`,1 AS `state_name`,1 AS `city_id`,1 AS `city_name`,1 AS `master_package_id`,1 AS `package_name`,1 AS `master_package_mode_id`,1 AS `package_mode`,1 AS `date_from`,1 AS `date_to`,1 AS `rate_type`,1 AS `rate_value`,1 AS `week_days`,1 AS `vendor_name`,1 AS `client_name`,1 AS `vehicle_type`,1 AS `dispatch_location_id`,1 AS `user_id`,1 AS `base_comb_id`,1 AS `type_of_dispatch`,1 AS `garage_type`,1 AS `address`,1 AS `city`,1 AS `pincode`,1 AS `created_date`,1 AS `created_by`,1 AS `status`,1 AS `distance_minimum_charge`,1 AS `distance_minimum_distance`,1 AS `distance_per_km_charge`,1 AS `hourly_minimum_charge`,1 AS `hourly_minimum_hrs`,1 AS `hourly_per_hr_charge`,1 AS `dist_waiting_minimum_charge`,1 AS `dist_waiting_minimum_distance`,1 AS `dist_waiting_per_km_charge`,1 AS `dist_waiting_waiting_fees`,1 AS `dist_hour_minimum_charge`,1 AS `dist_hour_minimum_distance`,1 AS `dist_hour_minimum_hrs`,1 AS `dist_hour_per_km_charge`,1 AS `dist_hour_per_hr_charge`,1 AS `company_share_type`,1 AS `company_share` */;

--
-- Final view structure for view `view_wallet_point`
--

/*!50001 DROP VIEW IF EXISTS `view_wallet_point`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `view_wallet_point` AS select 1 AS `user_id`,1 AS `username`,1 AS `referral_key`,1 AS `referal_id`,1 AS `referal_by`,1 AS `user_amount`,1 AS `referer_amount`,1 AS `created` */;


