|
| 1 | +-- phpMyAdmin SQL Dump |
| 2 | +-- version 4.0.4 |
| 3 | +-- http://www.phpmyadmin.net |
| 4 | +-- |
| 5 | +-- Host: localhost |
| 6 | +-- Generation Time: Apr 19, 2018 at 07:11 AM |
| 7 | +-- Server version: 5.6.12-log |
| 8 | +-- PHP Version: 5.4.12 |
| 9 | + |
| 10 | +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
| 11 | +SET time_zone = "+00:00"; |
| 12 | + |
| 13 | + |
| 14 | +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
| 15 | +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
| 16 | +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
| 17 | +/*!40101 SET NAMES utf8 */; |
| 18 | + |
| 19 | +-- |
| 20 | +-- Database: `online_rest` |
| 21 | +-- |
| 22 | +CREATE DATABASE IF NOT EXISTS `online_rest` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; |
| 23 | +USE `online_rest`; |
| 24 | + |
| 25 | +-- -------------------------------------------------------- |
| 26 | + |
| 27 | +-- |
| 28 | +-- Table structure for table `admin` |
| 29 | +-- |
| 30 | + |
| 31 | +CREATE TABLE IF NOT EXISTS `admin` ( |
| 32 | + `adm_id` int(222) NOT NULL AUTO_INCREMENT, |
| 33 | + `username` varchar(222) NOT NULL, |
| 34 | + `password` varchar(222) NOT NULL, |
| 35 | + `email` varchar(222) NOT NULL, |
| 36 | + `code` varchar(222) NOT NULL, |
| 37 | + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 38 | + PRIMARY KEY (`adm_id`) |
| 39 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; |
| 40 | + |
| 41 | +-- |
| 42 | +-- Dumping data for table `admin` |
| 43 | +-- |
| 44 | + |
| 45 | +INSERT INTO `admin` (`adm_id`, `username`, `password`, `email`, `code`, `date`) VALUES |
| 46 | +( 6, 'admin', '81dc9bdb52d04dc20036dbd8313ed055', '[email protected]', '', '2018-04-09 07:36:18'), |
| 47 | +( 8, 'abc888', '6d0361d5777656072438f6e314a852bc', '[email protected]', 'QX5ZMN', '2018-04-13 18:12:30'); |
| 48 | + |
| 49 | +-- -------------------------------------------------------- |
| 50 | + |
| 51 | +-- |
| 52 | +-- Table structure for table `admin_codes` |
| 53 | +-- |
| 54 | + |
| 55 | +CREATE TABLE IF NOT EXISTS `admin_codes` ( |
| 56 | + `id` int(222) NOT NULL AUTO_INCREMENT, |
| 57 | + `codes` varchar(6) NOT NULL, |
| 58 | + PRIMARY KEY (`id`) |
| 59 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; |
| 60 | + |
| 61 | +-- |
| 62 | +-- Dumping data for table `admin_codes` |
| 63 | +-- |
| 64 | + |
| 65 | +INSERT INTO `admin_codes` (`id`, `codes`) VALUES |
| 66 | +(1, 'QX5ZMN'), |
| 67 | +(2, 'QFE6ZM'), |
| 68 | +(3, 'QMZR92'), |
| 69 | +(4, 'QPGIOV'), |
| 70 | +(5, 'QSTE52'), |
| 71 | +(6, 'QMTZ2J'); |
| 72 | + |
| 73 | +-- -------------------------------------------------------- |
| 74 | + |
| 75 | +-- |
| 76 | +-- Table structure for table `dishes` |
| 77 | +-- |
| 78 | + |
| 79 | +CREATE TABLE IF NOT EXISTS `dishes` ( |
| 80 | + `d_id` int(222) NOT NULL AUTO_INCREMENT, |
| 81 | + `rs_id` int(222) NOT NULL, |
| 82 | + `title` varchar(222) NOT NULL, |
| 83 | + `slogan` varchar(222) NOT NULL, |
| 84 | + `price` decimal(10,2) NOT NULL, |
| 85 | + `img` varchar(222) NOT NULL, |
| 86 | + PRIMARY KEY (`d_id`) |
| 87 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ; |
| 88 | + |
| 89 | +-- |
| 90 | +-- Dumping data for table `dishes` |
| 91 | +-- |
| 92 | + |
| 93 | +INSERT INTO `dishes` (`d_id`, `rs_id`, `title`, `slogan`, `price`, `img`) VALUES |
| 94 | +(11, 48, 'Bonefish', 'Three ounces of lightly seasoned fresh tilapia ', '55.77', '5ad7582e2ec9c.jpg'), |
| 95 | +(12, 48, 'Hard Rock Cafe', 'A mix of chopped lettuces, shredded cheese, chicken cubes', '22.12', '5ad7590d9702b.jpg'), |
| 96 | +(13, 49, 'Uno Pizzeria & Grill', 'Kids can choose their pasta shape, type of sauce, favorite veggies (like broccoli or mushrooms)', '12.35', '5ad7597aa0479.jpg'), |
| 97 | +(14, 50, 'Red Robins Chick on a Stick', 'Plain grilled chicken breast? Blah.', '34.99', '5ad759e1546fc.jpg'), |
| 98 | +(15, 51, 'Lyfe Kitchens Tofu Taco', 'This chain, known for a wide selection of vegetarian and vegan choices', '11.99', '5ad75a1869e93.jpg'), |
| 99 | +(16, 52, 'Houlihans Mini Cheeseburger', 'Creekstone Farms, where no antibiotics or growth hormones are used', '22.55', '5ad75a5dbb329.jpg'), |
| 100 | +(17, 53, 'jklmno', 'great taste great whatever', '17.99', '5ad79fcf59e66.jpg'); |
| 101 | + |
| 102 | +-- -------------------------------------------------------- |
| 103 | + |
| 104 | +-- |
| 105 | +-- Table structure for table `remark` |
| 106 | +-- |
| 107 | + |
| 108 | +CREATE TABLE IF NOT EXISTS `remark` ( |
| 109 | + `id` int(11) NOT NULL AUTO_INCREMENT, |
| 110 | + `frm_id` int(11) NOT NULL, |
| 111 | + `status` varchar(255) NOT NULL, |
| 112 | + `remark` mediumtext NOT NULL, |
| 113 | + `remarkDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 114 | + PRIMARY KEY (`id`) |
| 115 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=71 ; |
| 116 | + |
| 117 | +-- |
| 118 | +-- Dumping data for table `remark` |
| 119 | +-- |
| 120 | + |
| 121 | +INSERT INTO `remark` (`id`, `frm_id`, `status`, `remark`, `remarkDate`) VALUES |
| 122 | +(62, 32, 'in process', 'hi', '2018-04-18 17:35:52'), |
| 123 | +(63, 32, 'closed', 'cc', '2018-04-18 17:36:46'), |
| 124 | +(64, 32, 'in process', 'fff', '2018-04-18 18:01:37'), |
| 125 | +(65, 32, 'closed', 'its delv', '2018-04-18 18:08:55'), |
| 126 | +(66, 34, 'in process', 'on a way', '2018-04-18 18:56:32'), |
| 127 | +(67, 35, 'closed', 'ok', '2018-04-18 18:59:08'), |
| 128 | +(68, 37, 'in process', 'on the way!', '2018-04-18 19:50:06'), |
| 129 | +(69, 37, 'rejected', 'if admin cancel for any reason this box is for remark only for buter perposes', '2018-04-18 19:51:19'), |
| 130 | +(70, 37, 'closed', 'delivered success', '2018-04-18 19:51:50'); |
| 131 | + |
| 132 | +-- -------------------------------------------------------- |
| 133 | + |
| 134 | +-- |
| 135 | +-- Table structure for table `restaurant` |
| 136 | +-- |
| 137 | + |
| 138 | +CREATE TABLE IF NOT EXISTS `restaurant` ( |
| 139 | + `rs_id` int(222) NOT NULL AUTO_INCREMENT, |
| 140 | + `c_id` int(222) NOT NULL, |
| 141 | + `title` varchar(222) NOT NULL, |
| 142 | + `email` varchar(222) NOT NULL, |
| 143 | + `phone` varchar(222) NOT NULL, |
| 144 | + `url` varchar(222) NOT NULL, |
| 145 | + `o_hr` varchar(222) NOT NULL, |
| 146 | + `c_hr` varchar(222) NOT NULL, |
| 147 | + `o_days` varchar(222) NOT NULL, |
| 148 | + `address` text NOT NULL, |
| 149 | + `image` text NOT NULL, |
| 150 | + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 151 | + PRIMARY KEY (`rs_id`) |
| 152 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ; |
| 153 | + |
| 154 | +-- |
| 155 | +-- Dumping data for table `restaurant` |
| 156 | +-- |
| 157 | + |
| 158 | +INSERT INTO `restaurant` (`rs_id`, `c_id`, `title`, `email`, `phone`, `url`, `o_hr`, `c_hr`, `o_days`, `address`, `image`, `date`) VALUES |
| 159 | +( 48, 5, 'Hari Burger', '[email protected]', ' 090412 64676', 'HariBurger.com', '7am', '4pm', 'mon-tue', ' Palace, natwar jalandhar', '5ad74ce37c383.jpg', '2018-04-18 13:49:23'), |
| 160 | +( 49, 5, 'The Great Kabab Factory', '[email protected]', '011 2677 9070', 'kwbab.com', '6am', '5pm', 'mon-fri', 'Radisson Blu Plaza Hotel, Delhi Airport, NH-8, New Delhi, 110037', '5ad74de005016.jpg', '2018-04-18 13:53:36'), |
| 161 | +( 50, 6, 'Aarkay Vaishno Dhaba', '[email protected]', '090410 35147', 'Vaishno.com', '6am', '6pm', 'mon-sat', 'Bhargav Nagar, Jalandhar - Nakodar Rd, Jalandhar, Punjab 144003', '5ad74e5310ae4.jpg', '2018-04-18 13:55:31'), |
| 162 | +( 51, 7, 'Martini', '[email protected]', '3454345654', 'martin.com', '8am', '4pm', 'mon-thu', '399 L Near Apple Showroom, Model Town,', '5ad74ebf1d103.jpg', '2018-04-18 13:57:19'), |
| 163 | +( 52, 8, 'hudson', '[email protected]', '2345434567', 'hudson.com', '6am', '7pm', 'mon-fri', 'Opposite Lovely Sweets, Nakodar Road, Jalandhar, Punjab 144001', '5ad756f1429e3.jpg', '2018-04-18 14:32:17'), |
| 164 | +( 53, 9, 'kriyana store', '[email protected]', '4512545784', 'kari.com', '7am', '7pm', 'mon-sat', 'near kalu gali hotel india what everrrr.', '5ad79e7d01c5a.jpg', '2018-04-18 19:37:33'); |
| 165 | + |
| 166 | +-- -------------------------------------------------------- |
| 167 | + |
| 168 | +-- |
| 169 | +-- Table structure for table `res_category` |
| 170 | +-- |
| 171 | + |
| 172 | +CREATE TABLE IF NOT EXISTS `res_category` ( |
| 173 | + `c_id` int(222) NOT NULL AUTO_INCREMENT, |
| 174 | + `c_name` varchar(222) NOT NULL, |
| 175 | + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 176 | + PRIMARY KEY (`c_id`) |
| 177 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ; |
| 178 | + |
| 179 | +-- |
| 180 | +-- Dumping data for table `res_category` |
| 181 | +-- |
| 182 | + |
| 183 | +INSERT INTO `res_category` (`c_id`, `c_name`, `date`) VALUES |
| 184 | +(5, 'grill', '2018-04-14 18:45:28'), |
| 185 | +(6, 'pizza', '2018-04-14 18:44:56'), |
| 186 | +(7, 'pasta', '2018-04-14 18:45:13'), |
| 187 | +(8, 'thaifood', '2018-04-14 18:32:56'), |
| 188 | +(9, 'fish', '2018-04-14 18:44:33'); |
| 189 | + |
| 190 | +-- -------------------------------------------------------- |
| 191 | + |
| 192 | +-- |
| 193 | +-- Table structure for table `users` |
| 194 | +-- |
| 195 | + |
| 196 | +CREATE TABLE IF NOT EXISTS `users` ( |
| 197 | + `u_id` int(222) NOT NULL AUTO_INCREMENT, |
| 198 | + `username` varchar(222) NOT NULL, |
| 199 | + `f_name` varchar(222) NOT NULL, |
| 200 | + `l_name` varchar(222) NOT NULL, |
| 201 | + `email` varchar(222) NOT NULL, |
| 202 | + `phone` varchar(222) NOT NULL, |
| 203 | + `password` varchar(222) NOT NULL, |
| 204 | + `address` text NOT NULL, |
| 205 | + `status` int(222) NOT NULL DEFAULT '1', |
| 206 | + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 207 | + PRIMARY KEY (`u_id`) |
| 208 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=33 ; |
| 209 | + |
| 210 | +-- |
| 211 | +-- Dumping data for table `users` |
| 212 | +-- |
| 213 | + |
| 214 | +INSERT INTO `users` (`u_id`, `username`, `f_name`, `l_name`, `email`, `phone`, `password`, `address`, `status`, `date`) VALUES |
| 215 | +( 31, 'navjot789', 'navjot', 'singh', '[email protected]', '9041240385', '6d0361d5777656072438f6e314a852bc', 'badri col phase 2', 1, '2018-04-18 10:05:03'), |
| 216 | +( 32, 'navjot890', 'nav', 'singh', '[email protected]', '6232125458', '6d0361d5777656072438f6e314a852bc', 'badri col phase 1', 1, '2018-04-18 09:50:56'); |
| 217 | + |
| 218 | +-- -------------------------------------------------------- |
| 219 | + |
| 220 | +-- |
| 221 | +-- Table structure for table `users_orders` |
| 222 | +-- |
| 223 | + |
| 224 | +CREATE TABLE IF NOT EXISTS `users_orders` ( |
| 225 | + `o_id` int(222) NOT NULL AUTO_INCREMENT, |
| 226 | + `u_id` int(222) NOT NULL, |
| 227 | + `title` varchar(222) NOT NULL, |
| 228 | + `quantity` int(222) NOT NULL, |
| 229 | + `price` decimal(10,2) NOT NULL, |
| 230 | + `status` varchar(222) DEFAULT NULL, |
| 231 | + `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
| 232 | + PRIMARY KEY (`o_id`) |
| 233 | +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ; |
| 234 | + |
| 235 | +-- |
| 236 | +-- Dumping data for table `users_orders` |
| 237 | +-- |
| 238 | + |
| 239 | +INSERT INTO `users_orders` (`o_id`, `u_id`, `title`, `quantity`, `price`, `status`, `date`) VALUES |
| 240 | +(37, 31, 'jklmno', 5, '17.99', 'closed', '2018-04-18 19:51:50'), |
| 241 | +(38, 31, 'Red Robins Chick on a Stick', 2, '34.99', NULL, '2018-04-18 19:52:34'); |
| 242 | + |
| 243 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
| 244 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
| 245 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
0 commit comments