dc
Showing
| -- phpMyAdmin SQL Dump | ||
| -- version 4.8.3 | ||
| -- version 4.7.9 | ||
| -- https://www.phpmyadmin.net/ | ||
| -- | ||
| -- Host: db | ||
| -- Generation Time: Mar 22, 2019 at 12:17 PM | ||
| -- Server version: 5.6.41 | ||
| -- PHP Version: 7.2.8 | ||
| -- Host: 127.0.0.1:3306 | ||
| -- Generation Time: Mar 24, 2019 at 07:25 PM | ||
| -- Server version: 5.7.21 | ||
| -- PHP Version: 5.6.35 | ||
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
| SET AUTOCOMMIT = 0; | ||
| ... | ... | @@ -19,7 +19,7 @@ SET time_zone = "+00:00"; | 
| /*!40101 SET NAMES utf8mb4 */; | ||
| -- | ||
| -- Database: `tobin_eventTimeOut` | ||
| -- Database: `tobin_eventtimeout` | ||
| -- | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -28,8 +28,9 @@ SET time_zone = "+00:00"; | 
| -- Table structure for table `booking` | ||
| -- | ||
| CREATE TABLE `booking` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `booking`; | ||
| CREATE TABLE IF NOT EXISTS `booking` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `event_id` int(11) NOT NULL, | ||
| `customer_id` int(11) NOT NULL COMMENT 'Guest - 0', | ||
| `bookId` varchar(45) DEFAULT NULL, | ||
| ... | ... | @@ -40,8 +41,9 @@ CREATE TABLE `booking` ( | 
| `amount` double DEFAULT NULL, | ||
| `reserved_by` int(11) DEFAULT '3' COMMENT '1 - SuperAdmin\n2 - Provider\n3 - Customer', | ||
| `booking_date` varchar(50) DEFAULT NULL, | ||
| `status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending, 4 - Deleted' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending, 4 - Deleted', | ||
| PRIMARY KEY (`id`) USING BTREE | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `booking` | ||
| ... | ... | @@ -64,11 +66,31 @@ INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id | 
| -- -------------------------------------------------------- | ||
| -- | ||
| -- Table structure for table `commission_payment` | ||
| -- | ||
| DROP TABLE IF EXISTS `commission_payment`; | ||
| CREATE TABLE IF NOT EXISTS `commission_payment` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `provider_id` int(11) DEFAULT NULL, | ||
| `last_payment_date` varchar(150) DEFAULT NULL, | ||
| `total_booking` double DEFAULT NULL, | ||
| `tickets_sold` int(11) DEFAULT NULL, | ||
| `last_payed` double DEFAULT NULL, | ||
| `total_payed` double DEFAULT NULL, | ||
| `status` tinyint(3) NOT NULL DEFAULT '1', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| -- -------------------------------------------------------- | ||
| -- | ||
| -- Table structure for table `customer` | ||
| -- | ||
| CREATE TABLE `customer` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `customer`; | ||
| CREATE TABLE IF NOT EXISTS `customer` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `customer_id` int(11) DEFAULT NULL, | ||
| `name` varchar(50) DEFAULT NULL, | ||
| `phone` varchar(25) DEFAULT NULL, | ||
| ... | ... | @@ -79,8 +101,9 @@ CREATE TABLE `customer` ( | 
| `reset_key` varchar(255) DEFAULT NULL, | ||
| `social_id` varchar(250) DEFAULT NULL, | ||
| `profile_image` varchar(250) DEFAULT NULL, | ||
| `phone_verified` int(11) DEFAULT '0' COMMENT '1= Verified, 0=>Not' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `phone_verified` int(11) DEFAULT '0' COMMENT '1= Verified, 0=>Not', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `customer` | ||
| ... | ... | @@ -101,12 +124,14 @@ INSERT INTO `customer` (`id`, `customer_id`, `name`, `phone`, `email`, `gender`, | 
| -- Table structure for table `customer_auth` | ||
| -- | ||
| CREATE TABLE `customer_auth` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `customer_auth`; | ||
| CREATE TABLE IF NOT EXISTS `customer_auth` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `user_id` int(11) NOT NULL, | ||
| `auth_token` varchar(255) NOT NULL, | ||
| `sync_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `sync_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `customer_auth` | ||
| ... | ... | @@ -182,8 +207,9 @@ INSERT INTO `customer_auth` (`id`, `user_id`, `auth_token`, `sync_time`) VALUES | 
| -- Table structure for table `events` | ||
| -- | ||
| CREATE TABLE `events` ( | ||
| `event_id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `events`; | ||
| CREATE TABLE IF NOT EXISTS `events` ( | ||
| `event_id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `venue_id` int(11) DEFAULT NULL, | ||
| `category_id` int(11) DEFAULT NULL, | ||
| `provider_id` int(11) DEFAULT NULL, | ||
| ... | ... | @@ -194,8 +220,9 @@ CREATE TABLE `events` ( | 
| `has_payment` tinyint(3) NOT NULL DEFAULT '1', | ||
| `avg_price` double NOT NULL, | ||
| `custom_seat_layout` longtext, | ||
| `status` tinyint(3) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted 3 - Waiting For Approval' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted 3 - Waiting For Approval', | ||
| PRIMARY KEY (`event_id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `events` | ||
| ... | ... | @@ -226,13 +253,15 @@ INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `eve | 
| -- Table structure for table `event_category` | ||
| -- | ||
| CREATE TABLE `event_category` ( | ||
| `cat_id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `event_category`; | ||
| CREATE TABLE IF NOT EXISTS `event_category` ( | ||
| `cat_id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `category` varchar(250) DEFAULT NULL, | ||
| `category_description` longtext, | ||
| `category_image` varchar(250) DEFAULT NULL, | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) NOT NULL DEFAULT '1', | ||
| PRIMARY KEY (`cat_id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `event_category` | ||
| ... | ... | @@ -258,13 +287,16 @@ INSERT INTO `event_category` (`cat_id`, `category`, `category_description`, `cat | 
| -- Table structure for table `event_date_time` | ||
| -- | ||
| CREATE TABLE `event_date_time` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `event_date_time`; | ||
| CREATE TABLE IF NOT EXISTS `event_date_time` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `event_id` int(11) DEFAULT NULL, | ||
| `date` varchar(150) DEFAULT NULL, | ||
| `time` varchar(150) DEFAULT NULL, | ||
| `status` tinyint(3) DEFAULT '1' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) DEFAULT '1', | ||
| PRIMARY KEY (`id`), | ||
| KEY `event_id` (`event_id`,`date`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=4662 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `event_date_time` | ||
| ... | ... | @@ -1238,13 +1270,16 @@ INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUE | 
| -- Table structure for table `event_gallery` | ||
| -- | ||
| CREATE TABLE `event_gallery` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `event_gallery`; | ||
| CREATE TABLE IF NOT EXISTS `event_gallery` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `event_id` int(11) DEFAULT NULL, | ||
| `media_type` tinyint(3) DEFAULT NULL COMMENT '0=>Primary, 1 => Photos, 2 => Videos, 3 => Youtube Link', | ||
| `media_url` varchar(100) DEFAULT NULL, | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive', | ||
| PRIMARY KEY (`id`) USING BTREE, | ||
| KEY `event_id` (`event_id`,`media_type`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `event_gallery` | ||
| ... | ... | @@ -1284,12 +1319,14 @@ INSERT INTO `event_gallery` (`id`, `event_id`, `media_type`, `media_url`, `statu | 
| -- Table structure for table `event_tags` | ||
| -- | ||
| CREATE TABLE `event_tags` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `event_tags`; | ||
| CREATE TABLE IF NOT EXISTS `event_tags` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `event_id` int(11) DEFAULT NULL, | ||
| `tag_id` int(11) DEFAULT NULL, | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=374 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `event_tags` | ||
| ... | ... | @@ -1341,12 +1378,14 @@ INSERT INTO `event_tags` (`id`, `event_id`, `tag_id`, `status`) VALUES | 
| -- Table structure for table `favourite` | ||
| -- | ||
| CREATE TABLE `favourite` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `favourite`; | ||
| CREATE TABLE IF NOT EXISTS `favourite` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `user_id` int(11) NOT NULL, | ||
| `event_id` int(11) NOT NULL, | ||
| `create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| `status` int(11) NOT NULL DEFAULT '1' | ||
| `status` int(11) NOT NULL DEFAULT '1', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1355,12 +1394,14 @@ CREATE TABLE `favourite` ( | 
| -- Table structure for table `host_categories` | ||
| -- | ||
| CREATE TABLE `host_categories` ( | ||
| `host_cat_id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `host_categories`; | ||
| CREATE TABLE IF NOT EXISTS `host_categories` ( | ||
| `host_cat_id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `host_category` varchar(150) DEFAULT NULL, | ||
| `show_layout` tinyint(3) DEFAULT NULL, | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '0 => Inactive 1 => Active 2 => Deleted', | ||
| PRIMARY KEY (`host_cat_id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `host_categories` | ||
| ... | ... | @@ -1379,13 +1420,15 @@ INSERT INTO `host_categories` (`host_cat_id`, `host_category`, `show_layout`, `s | 
| -- Table structure for table `locality` | ||
| -- | ||
| CREATE TABLE `locality` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `locality`; | ||
| CREATE TABLE IF NOT EXISTS `locality` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `venue_id` int(11) NOT NULL, | ||
| `region_id` int(11) DEFAULT NULL, | ||
| `locality` varchar(255) NOT NULL, | ||
| `status` int(11) NOT NULL DEFAULT '1' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) NOT NULL DEFAULT '1', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `locality` | ||
| ... | ... | @@ -1406,19 +1449,24 @@ INSERT INTO `locality` (`id`, `venue_id`, `region_id`, `locality`, `status`) VAL | 
| -- Table structure for table `privacy_policy` | ||
| -- | ||
| CREATE TABLE `privacy_policy` ( | ||
| `id` int(11) NOT NULL, | ||
| `faq` longtext, | ||
| `privacy_policy` longtext, | ||
| `terms_and_conditions` longtext | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| DROP TABLE IF EXISTS `privacy_policy`; | ||
| CREATE TABLE IF NOT EXISTS `privacy_policy` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `faq_en` longtext, | ||
| `faq_ar` longtext, | ||
| `privacy_policy_en` longtext, | ||
| `privacy_policy_ar` longtext, | ||
| `terms_and_conditions_en` longtext, | ||
| `terms_and_conditions_ar` longtext, | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `privacy_policy` | ||
| -- | ||
| INSERT INTO `privacy_policy` (`id`, `faq`, `privacy_policy`, `terms_and_conditions`) VALUES | ||
| (1, '<p>1</p>\r\n', '<p>2</p>\r\n', '<p>3</p>\r\n'); | ||
| INSERT INTO `privacy_policy` (`id`, `faq_en`, `faq_ar`, `privacy_policy_en`, `privacy_policy_ar`, `terms_and_conditions_en`, `terms_and_conditions_ar`) VALUES | ||
| (1, '<p>en 1</p>\r\n', '<p>ar 1</p>\r\n', '<p>en 2</p>\r\n', '<p>ar 2</p>\r\n', '<p>en 3</p>\r\n', '<p>ar 3</p>\r\n'); | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1426,14 +1474,24 @@ INSERT INTO `privacy_policy` (`id`, `faq`, `privacy_policy`, `terms_and_conditio | 
| -- Table structure for table `provider` | ||
| -- | ||
| CREATE TABLE `provider` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `provider`; | ||
| CREATE TABLE IF NOT EXISTS `provider` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `provider_id` int(11) DEFAULT NULL, | ||
| `name` varchar(55) DEFAULT NULL, | ||
| `email` varchar(50) DEFAULT NULL, | ||
| `phone` varchar(25) DEFAULT NULL, | ||
| `profile_image` varchar(250) DEFAULT NULL | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `profile_image` varchar(250) DEFAULT NULL, | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `provider` | ||
| -- | ||
| INSERT INTO `provider` (`id`, `provider_id`, `name`, `email`, `phone`, `profile_image`) VALUES | ||
| (1, 22, 'rgt', '[email protected]', '4829236233', 'assets/uploads/services/1553453170_OCB-Football-Seating-Map-FINAL.jpg'), | ||
| (2, 23, 'rdfg', '[email protected]', '54829236233', 'assets/uploads/services/1553453196_OCB-Football-Seating-Map-FINAL.jpg'); | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1441,12 +1499,14 @@ CREATE TABLE `provider` ( | 
| -- Table structure for table `region` | ||
| -- | ||
| CREATE TABLE `region` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `region`; | ||
| CREATE TABLE IF NOT EXISTS `region` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `name` varchar(100) DEFAULT NULL, | ||
| `region_icon` varchar(250) DEFAULT NULL, | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `region` | ||
| ... | ... | @@ -1470,14 +1530,18 @@ INSERT INTO `region` (`id`, `name`, `region_icon`, `status`) VALUES | 
| -- Table structure for table `reservation` | ||
| -- | ||
| CREATE TABLE `reservation` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `reservation`; | ||
| CREATE TABLE IF NOT EXISTS `reservation` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `restaurant_id` int(11) NOT NULL, | ||
| `customer_id` int(11) NOT NULL, | ||
| `date` date DEFAULT NULL, | ||
| `time` varchar(45) DEFAULT NULL, | ||
| `seats` int(11) DEFAULT NULL, | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive' | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive', | ||
| PRIMARY KEY (`id`,`restaurant_id`,`customer_id`), | ||
| KEY `fk_reservation_restaurant1_idx` (`restaurant_id`), | ||
| KEY `fk_reservation_customer1_idx` (`customer_id`) | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1486,12 +1550,16 @@ CREATE TABLE `reservation` ( | 
| -- Table structure for table `review` | ||
| -- | ||
| CREATE TABLE `review` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `review`; | ||
| CREATE TABLE IF NOT EXISTS `review` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `event_id` int(11) NOT NULL, | ||
| `customer_id` int(11) NOT NULL, | ||
| `rate` int(11) DEFAULT NULL COMMENT '1 - 5', | ||
| `feedback` longtext | ||
| `feedback` longtext, | ||
| PRIMARY KEY (`id`,`event_id`,`customer_id`), | ||
| KEY `fk_review_event1_idx` (`event_id`), | ||
| KEY `fk_review_customer1_idx` (`customer_id`) | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1500,7 +1568,8 @@ CREATE TABLE `review` ( | 
| -- Table structure for table `setting` | ||
| -- | ||
| CREATE TABLE `setting` ( | ||
| DROP TABLE IF EXISTS `setting`; | ||
| CREATE TABLE IF NOT EXISTS `setting` ( | ||
| `id` int(11) NOT NULL, | ||
| `title` varchar(250) NOT NULL, | ||
| `title_short` varchar(250) NOT NULL, | ||
| ... | ... | @@ -1512,7 +1581,8 @@ CREATE TABLE `setting` ( | 
| `smtp_host` varchar(150) NOT NULL, | ||
| `smtp_username` varchar(150) NOT NULL, | ||
| `smtp_password` varchar(150) NOT NULL, | ||
| `google_api_key` varchar(500) DEFAULT NULL | ||
| `google_api_key` varchar(500) DEFAULT NULL, | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
| -- | ||
| ... | ... | @@ -1528,11 +1598,13 @@ INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `c | 
| -- Table structure for table `tags` | ||
| -- | ||
| CREATE TABLE `tags` ( | ||
| `tag_id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `tags`; | ||
| CREATE TABLE IF NOT EXISTS `tags` ( | ||
| `tag_id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `tag_name` varchar(150) DEFAULT NULL, | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` tinyint(3) NOT NULL DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted', | ||
| PRIMARY KEY (`tag_id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `tags` | ||
| ... | ... | @@ -1554,15 +1626,19 @@ INSERT INTO `tags` (`tag_id`, `tag_name`, `status`) VALUES | 
| -- Table structure for table `transaction` | ||
| -- | ||
| CREATE TABLE `transaction` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `transaction`; | ||
| CREATE TABLE IF NOT EXISTS `transaction` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `customer_id` int(11) NOT NULL, | ||
| `booking_id` int(11) NOT NULL, | ||
| `datetime` datetime DEFAULT NULL, | ||
| `transaction_id` varchar(45) DEFAULT NULL, | ||
| `transaction_response` longtext, | ||
| `amount` double DEFAULT NULL, | ||
| `status` int(11) DEFAULT '2' COMMENT '1 - Completed, 0 - Failed, 2 - Processing ' | ||
| `status` int(11) DEFAULT '2' COMMENT '1 - Completed, 0 - Failed, 2 - Processing ', | ||
| PRIMARY KEY (`id`,`customer_id`,`booking_id`), | ||
| KEY `fk_transaction_customer1_idx` (`customer_id`), | ||
| KEY `fk_transaction_booking1_idx` (`booking_id`) | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1571,15 +1647,17 @@ CREATE TABLE `transaction` ( | 
| -- Table structure for table `users` | ||
| -- | ||
| CREATE TABLE `users` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `users`; | ||
| CREATE TABLE IF NOT EXISTS `users` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `username` varchar(50) DEFAULT NULL, | ||
| `password` varchar(255) DEFAULT NULL, | ||
| `display_name` varchar(100) DEFAULT NULL, | ||
| `profile_image` varchar(250) DEFAULT NULL, | ||
| `user_type` tinyint(3) DEFAULT '3' COMMENT '1 - SuperAdmin 2 - Provider 3 - Customer ', | ||
| `status` int(11) DEFAULT '1' COMMENT '0- Inactive 1-Active' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) DEFAULT '1' COMMENT '0- Inactive 1-Active', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `users` | ||
| ... | ... | @@ -1600,7 +1678,9 @@ INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_imag | 
| (18, NULL, '25d55ad283aa400af464c76d713c07ad', 'Customer', NULL, 3, 1), | ||
| (19, NULL, '25d55ad283aa400af464c76d713c07ad', 'Customer', NULL, 3, 1), | ||
| (20, NULL, '52ae655aa0e359979fdb68d9b3baa2dc', 'Customer', NULL, 3, 1), | ||
| (21, NULL, '25d55ad283aa400af464c76d713c07ad', 'Customer', NULL, 3, 1); | ||
| (21, NULL, '25d55ad283aa400af464c76d713c07ad', 'Customer', NULL, 3, 1), | ||
| (22, 'adminr', '202cb962ac59075b964b07152d234b70', 'ergt', 'assets/uploads/services/1553453170_OCB-Football-Seating-Map-FINAL.jpg', 2, 1), | ||
| (23, 'adminf', '202cb962ac59075b964b07152d234b70', 'dfg', 'assets/uploads/services/1553453196_OCB-Football-Seating-Map-FINAL.jpg', 2, 1); | ||
| -- -------------------------------------------------------- | ||
| ... | ... | @@ -1608,8 +1688,9 @@ INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_imag | 
| -- Table structure for table `venue` | ||
| -- | ||
| CREATE TABLE `venue` ( | ||
| `id` int(11) NOT NULL, | ||
| DROP TABLE IF EXISTS `venue`; | ||
| CREATE TABLE IF NOT EXISTS `venue` ( | ||
| `id` int(11) NOT NULL AUTO_INCREMENT, | ||
| `venue_name` varchar(100) DEFAULT NULL, | ||
| `venue_details` longtext, | ||
| `region_id` int(11) DEFAULT NULL, | ||
| ... | ... | @@ -1620,8 +1701,9 @@ CREATE TABLE `venue` ( | 
| `location_lng` varchar(45) DEFAULT NULL, | ||
| `layout` varchar(100) DEFAULT NULL COMMENT 'Layout Image', | ||
| `layout_details` longtext COMMENT 'Layout Details (JSON data)', | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive' | ||
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
| `status` int(11) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive', | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1; | ||
| -- | ||
| -- Dumping data for table `venue` | ||
| ... | ... | @@ -1635,268 +1717,6 @@ INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `locality | 
| (19, 'King kilafat', 'qweatrsytuyuilo', 9, 11, 10, 'Al Bahah, Saudi Arabia', '20.0217407', '41.4712733', '', '', 2), | ||
| (20, 'The Cinema Build', 'Apex Atrium Motor City - Dubai', 7, 12, 11, 'Apex Atrium Motor City - Dubai', '25.0460738', '55.2355018', 'assets/uploads/services/1552069245_tyui.png', '[{\"color\":\"Red\",\"price\":\"100\",\"capacity\":\"120\",\"weekend_price\":\"100\"},{\"color\":\"Brown\",\"price\":\"200\",\"capacity\":\"50\",\"weekend_price\":\"200\"}]', 1), | ||
| (21, 'KAFD', 'KAFD', 15, 13, 14, 'King Abdullah Financial District ', '43.6482981', '-79.3833793', '', '', 1); | ||
| -- | ||
| -- Indexes for dumped tables | ||
| -- | ||
| -- | ||
| -- Indexes for table `booking` | ||
| -- | ||
| ALTER TABLE `booking` | ||
| ADD PRIMARY KEY (`id`) USING BTREE; | ||
| -- | ||
| -- Indexes for table `customer` | ||
| -- | ||
| ALTER TABLE `customer` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `customer_auth` | ||
| -- | ||
| ALTER TABLE `customer_auth` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `events` | ||
| -- | ||
| ALTER TABLE `events` | ||
| ADD PRIMARY KEY (`event_id`); | ||
| -- | ||
| -- Indexes for table `event_category` | ||
| -- | ||
| ALTER TABLE `event_category` | ||
| ADD PRIMARY KEY (`cat_id`); | ||
| -- | ||
| -- Indexes for table `event_date_time` | ||
| -- | ||
| ALTER TABLE `event_date_time` | ||
| ADD PRIMARY KEY (`id`), | ||
| ADD KEY `event_id` (`event_id`,`date`); | ||
| -- | ||
| -- Indexes for table `event_gallery` | ||
| -- | ||
| ALTER TABLE `event_gallery` | ||
| ADD PRIMARY KEY (`id`) USING BTREE, | ||
| ADD KEY `event_id` (`event_id`,`media_type`); | ||
| -- | ||
| -- Indexes for table `event_tags` | ||
| -- | ||
| ALTER TABLE `event_tags` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `favourite` | ||
| -- | ||
| ALTER TABLE `favourite` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `host_categories` | ||
| -- | ||
| ALTER TABLE `host_categories` | ||
| ADD PRIMARY KEY (`host_cat_id`); | ||
| -- | ||
| -- Indexes for table `locality` | ||
| -- | ||
| ALTER TABLE `locality` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `privacy_policy` | ||
| -- | ||
| ALTER TABLE `privacy_policy` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `provider` | ||
| -- | ||
| ALTER TABLE `provider` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `region` | ||
| -- | ||
| ALTER TABLE `region` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `reservation` | ||
| -- | ||
| ALTER TABLE `reservation` | ||
| ADD PRIMARY KEY (`id`,`restaurant_id`,`customer_id`), | ||
| ADD KEY `fk_reservation_restaurant1_idx` (`restaurant_id`), | ||
| ADD KEY `fk_reservation_customer1_idx` (`customer_id`); | ||
| -- | ||
| -- Indexes for table `review` | ||
| -- | ||
| ALTER TABLE `review` | ||
| ADD PRIMARY KEY (`id`,`event_id`,`customer_id`), | ||
| ADD KEY `fk_review_event1_idx` (`event_id`), | ||
| ADD KEY `fk_review_customer1_idx` (`customer_id`); | ||
| -- | ||
| -- Indexes for table `setting` | ||
| -- | ||
| ALTER TABLE `setting` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `tags` | ||
| -- | ||
| ALTER TABLE `tags` | ||
| ADD PRIMARY KEY (`tag_id`); | ||
| -- | ||
| -- Indexes for table `transaction` | ||
| -- | ||
| ALTER TABLE `transaction` | ||
| ADD PRIMARY KEY (`id`,`customer_id`,`booking_id`), | ||
| ADD KEY `fk_transaction_customer1_idx` (`customer_id`), | ||
| ADD KEY `fk_transaction_booking1_idx` (`booking_id`); | ||
| -- | ||
| -- Indexes for table `users` | ||
| -- | ||
| ALTER TABLE `users` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- Indexes for table `venue` | ||
| -- | ||
| ALTER TABLE `venue` | ||
| ADD PRIMARY KEY (`id`); | ||
| -- | ||
| -- AUTO_INCREMENT for dumped tables | ||
| -- | ||
| -- | ||
| -- AUTO_INCREMENT for table `booking` | ||
| -- | ||
| ALTER TABLE `booking` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; | ||
| -- | ||
| -- AUTO_INCREMENT for table `customer` | ||
| -- | ||
| ALTER TABLE `customer` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; | ||
| -- | ||
| -- AUTO_INCREMENT for table `customer_auth` | ||
| -- | ||
| ALTER TABLE `customer_auth` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63; | ||
| -- | ||
| -- AUTO_INCREMENT for table `events` | ||
| -- | ||
| ALTER TABLE `events` | ||
| MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; | ||
| -- | ||
| -- AUTO_INCREMENT for table `event_category` | ||
| -- | ||
| ALTER TABLE `event_category` | ||
| MODIFY `cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; | ||
| -- | ||
| -- AUTO_INCREMENT for table `event_date_time` | ||
| -- | ||
| ALTER TABLE `event_date_time` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4662; | ||
| -- | ||
| -- AUTO_INCREMENT for table `event_gallery` | ||
| -- | ||
| ALTER TABLE `event_gallery` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107; | ||
| -- | ||
| -- AUTO_INCREMENT for table `event_tags` | ||
| -- | ||
| ALTER TABLE `event_tags` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=374; | ||
| -- | ||
| -- AUTO_INCREMENT for table `favourite` | ||
| -- | ||
| ALTER TABLE `favourite` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | ||
| -- | ||
| -- AUTO_INCREMENT for table `host_categories` | ||
| -- | ||
| ALTER TABLE `host_categories` | ||
| MODIFY `host_cat_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; | ||
| -- | ||
| -- AUTO_INCREMENT for table `locality` | ||
| -- | ||
| ALTER TABLE `locality` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; | ||
| -- | ||
| -- AUTO_INCREMENT for table `privacy_policy` | ||
| -- | ||
| ALTER TABLE `privacy_policy` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; | ||
| -- | ||
| -- AUTO_INCREMENT for table `provider` | ||
| -- | ||
| ALTER TABLE `provider` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | ||
| -- | ||
| -- AUTO_INCREMENT for table `region` | ||
| -- | ||
| ALTER TABLE `region` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; | ||
| -- | ||
| -- AUTO_INCREMENT for table `reservation` | ||
| -- | ||
| ALTER TABLE `reservation` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | ||
| -- | ||
| -- AUTO_INCREMENT for table `review` | ||
| -- | ||
| ALTER TABLE `review` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | ||
| -- | ||
| -- AUTO_INCREMENT for table `tags` | ||
| -- | ||
| ALTER TABLE `tags` | ||
| MODIFY `tag_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; | ||
| -- | ||
| -- AUTO_INCREMENT for table `transaction` | ||
| -- | ||
| ALTER TABLE `transaction` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | ||
| -- | ||
| -- AUTO_INCREMENT for table `users` | ||
| -- | ||
| ALTER TABLE `users` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; | ||
| -- | ||
| -- AUTO_INCREMENT for table `venue` | ||
| -- | ||
| ALTER TABLE `venue` | ||
| MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; | ||
| COMMIT; | ||
| /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
| ... | ... | 
Please
register
or
sign in
to comment