text: -- phpMyAdmin SQL Dump
  -- version 4.9.2
  -- https://www.phpmyadmin.net/
  --
  -- Host: localhost:3306
  -- Generation Time: Jan 22, 2020 at 06:04 PM
  -- Server version: 10.3.18-MariaDB
  -- PHP Version: 7.3.12
  
  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET AUTOCOMMIT = 0;
  START TRANSACTION;
  SET time_zone = "+00:00";
  
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8mb4 */;
  
  --
  -- Database: `id12115060_online_food`
  --
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin`
  --
  
  CREATE TABLE `admin` (
    `adm_id` int(222) NOT NULL,
    `username` varchar(222) NOT NULL,
    `password` varchar(222) NOT NULL,
    `email` varchar(222) NOT NULL,
    `code` varchar(222) NOT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `admin`
  --
  
  INSERT INTO `admin` (`adm_id`, `username`, `password`, `email`, `code`, `date`) VALUES
  (6, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin@gmail.com', '', '2018-04-09 07:36:18'),
  (8, 'abc888', '6d0361d5777656072438f6e314a852bc', 'abc@gmail.com', 'QX5ZMN', '2018-04-13 18:12:30');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `admin_codes`
  --
  
  CREATE TABLE `admin_codes` (
    `id` int(222) NOT NULL,
    `codes` varchar(6) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `admin_codes`
  --
  
  INSERT INTO `admin_codes` (`id`, `codes`) VALUES
  (1, 'QX5ZMN'),
  (2, 'QFE6ZM'),
  (3, 'QMZR92'),
  (4, 'QPGIOV'),
  (5, 'QSTE52'),
  (6, 'QMTZ2J');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `dishes`
  --
  
  CREATE TABLE `dishes` (
    `d_id` int(222) NOT NULL,
    `rs_id` int(222) NOT NULL,
    `title` varchar(222) NOT NULL,
    `slogan` varchar(222) NOT NULL,
    `price` decimal(10,2) NOT NULL,
    `img` varchar(222) NOT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `dishes`
  --
  
  INSERT INTO `dishes` (`d_id`, `rs_id`, `title`, `slogan`, `price`, `img`) VALUES
  (11, 48, 'Bonefish', 'Three ounces of lightly seasoned fresh tilapia ', 55.77, '5ad7582e2ec9c.jpg'),
  (12, 48, 'Hard Rock Cafe', 'A mix of chopped lettuces, shredded cheese, chicken cubes', 22.12, '5ad7590d9702b.jpg'),
  (13, 49, 'Uno Pizzeria & Grill', 'Kids can choose their pasta shape, type of sauce, favorite veggies (like broccoli or mushrooms)', 12.35, '5ad7597aa0479.jpg'),
  (14, 50, 'Red Robins Chick on a Stick', 'Plain grilled chicken breast? Blah.', 34.99, '5ad759e1546fc.jpg'),
  (15, 51, 'Lyfe Kitchens Tofu Taco', 'This chain, known for a wide selection of vegetarian and vegan choices', 11.99, '5ad75a1869e93.jpg'),
  (16, 52, 'Houlihans Mini Cheeseburger', 'Creekstone Farms, where no antibiotics or growth hormones are used', 22.55, '5ad75a5dbb329.jpg'),
  (17, 53, 'jklmno', 'great taste great whatever', 17.99, '5ad79fcf59e66.jpg');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `remark`
  --
  
  CREATE TABLE `remark` (
    `id` int(11) NOT NULL,
    `frm_id` int(11) NOT NULL,
    `status` varchar(255) NOT NULL,
    `remark` mediumtext NOT NULL,
    `remarkDate` timestamp NOT NULL DEFAULT current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `remark`
  --
  
  INSERT INTO `remark` (`id`, `frm_id`, `status`, `remark`, `remarkDate`) VALUES
  (62, 32, 'in process', 'hi', '2018-04-18 17:35:52'),
  (63, 32, 'closed', 'cc', '2018-04-18 17:36:46'),
  (64, 32, 'in process', 'fff', '2018-04-18 18:01:37'),
  (65, 32, 'closed', 'its delv', '2018-04-18 18:08:55'),
  (66, 34, 'in process', 'on a way', '2018-04-18 18:56:32'),
  (67, 35, 'closed', 'ok', '2018-04-18 18:59:08'),
  (68, 37, 'in process', 'on the way!', '2018-04-18 19:50:06'),
  (69, 37, 'rejected', 'if admin cancel for any reason this box is for remark only for buter perposes', '2018-04-18 19:51:19'),
  (70, 37, 'closed', 'delivered success', '2018-04-18 19:51:50');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `restaurant`
  --
  
  CREATE TABLE `restaurant` (
    `rs_id` int(222) NOT NULL,
    `c_id` int(222) NOT NULL,
    `title` varchar(222) NOT NULL,
    `email` varchar(222) NOT NULL,
    `phone` varchar(222) NOT NULL,
    `url` varchar(222) NOT NULL,
    `o_hr` varchar(222) NOT NULL,
    `c_hr` varchar(222) NOT NULL,
    `o_days` varchar(222) NOT NULL,
    `address` text NOT NULL,
    `image` text NOT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `restaurant`
  --
  
  INSERT INTO `restaurant` (`rs_id`, `c_id`, `title`, `email`, `phone`, `url`, `o_hr`, `c_hr`, `o_days`, `address`, `image`, `date`) VALUES
  (48, 5, 'VijayaLakshmi Bhavan', 'Vijayalakshmibhavan@gmail.com', ' 090412 64676', 'spicyfoodonline.000webhostapp.com', '7am', '4pm', 'mon-tue', 'Main Road,Sivakasi', '5ad74ce37c383.jpg', '2020-01-02 16:18:53'),
  (49, 5, 'The Great Kabab Factory', 'kwbab@gmail.com', '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'),
  (50, 6, 'Aarkay Vaishno Dhaba', 'Vaishno@gmail.com', '090410 35147', 'Vaishno.com', '6am', '6pm', 'mon-sat', 'Bhargav Nagar, Jalandhar - Nakodar Rd, Jalandhar, Punjab 144003', '5ad74e5310ae4.jpg', '2018-04-18 13:55:31'),
  (51, 7, 'Martini', 'martin@gmail.com', '3454345654', 'martin.com', '8am', '4pm', 'mon-thu', '399 L Near Apple Showroom, Model Town,', '5ad74ebf1d103.jpg', '2018-04-18 13:57:19'),
  (52, 8, 'hudson', 'hud@gmail.com', '2345434567', 'hudson.com', '6am', '7pm', 'mon-fri', 'Opposite Lovely Sweets, Nakodar Road, Jalandhar, Punjab 144001', '5ad756f1429e3.jpg', '2018-04-18 14:32:17'),
  (53, 9, 'kriyana store', 'kari@gmail.com', '4512545784', 'kari.com', '7am', '7pm', 'mon-sat', 'near kalu gali hotel india what everrrr.', '5ad79e7d01c5a.jpg', '2018-04-18 19:37:33');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `res_category`
  --
  
  CREATE TABLE `res_category` (
    `c_id` int(222) NOT NULL,
    `c_name` varchar(222) NOT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `res_category`
  --
  
  INSERT INTO `res_category` (`c_id`, `c_name`, `date`) VALUES
  (5, 'grill', '2018-04-14 18:45:28'),
  (6, 'pizza', '2018-04-14 18:44:56'),
  (7, 'pasta', '2018-04-14 18:45:13'),
  (8, 'thaifood', '2018-04-14 18:32:56'),
  (9, 'fish', '2018-04-14 18:44:33');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users`
  --
  
  CREATE TABLE `users` (
    `u_id` int(222) NOT NULL,
    `username` varchar(222) NOT NULL,
    `f_name` varchar(222) NOT NULL,
    `l_name` varchar(222) NOT NULL,
    `email` varchar(222) NOT NULL,
    `phone` varchar(222) NOT NULL,
    `password` varchar(222) NOT NULL,
    `address` text NOT NULL,
    `status` int(222) NOT NULL DEFAULT 1,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users`
  --
  
  INSERT INTO `users` (`u_id`, `username`, `f_name`, `l_name`, `email`, `phone`, `password`, `address`, `status`, `date`) VALUES
  (33, 'thiru', 'THIRUMURUGAN', 'k', 'thirumurugankrish18@gmail.com', '9876542132', '9d7dc7b31d6118ae3f10424e1bb6234b', 'PUDUR Viswanatham\r\nViswanatham', 1, '2019-12-26 18:18:08'),
  (34, 'thiruk', 'THIRUMURUGAN', 'k', 'smartthiru921@gmail.com', '8524001620', '9d7dc7b31d6118ae3f10424e1bb6234b', 'PUDUR Viswanatham\r\nViswanatham', 1, '2020-01-02 16:53:23');
  
  -- --------------------------------------------------------
  
  --
  -- Table structure for table `users_orders`
  --
  
  CREATE TABLE `users_orders` (
    `o_id` int(222) NOT NULL,
    `u_id` int(222) NOT NULL,
    `title` varchar(222) NOT NULL,
    `quantity` int(222) NOT NULL,
    `price` decimal(10,2) NOT NULL,
    `status` varchar(222) DEFAULT NULL,
    `date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  
  --
  -- Dumping data for table `users_orders`
  --
  
  INSERT INTO `users_orders` (`o_id`, `u_id`, `title`, `quantity`, `price`, `status`, `date`) VALUES
  (37, 31, 'jklmno', 5, 17.99, 'closed', '2018-04-18 19:51:50'),
  (38, 31, 'Red Robins Chick on a Stick', 2, 34.99, NULL, '2018-04-18 19:52:34'),
  (41, 33, 'Bonefish', 1, 55.77, NULL, '2020-01-06 10:16:21'),
  (42, 33, 'Hard Rock Cafe', 1, 22.12, NULL, '2020-01-06 10:16:21');
  
  --
  -- Indexes for dumped tables
  --
  
  --
  -- Indexes for table `admin`
  --
  ALTER TABLE `admin`
    ADD PRIMARY KEY (`adm_id`);
  
  --
  -- Indexes for table `admin_codes`
  --
  ALTER TABLE `admin_codes`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `dishes`
  --
  ALTER TABLE `dishes`
    ADD PRIMARY KEY (`d_id`);
  
  --
  -- Indexes for table `remark`
  --
  ALTER TABLE `remark`
    ADD PRIMARY KEY (`id`);
  
  --
  -- Indexes for table `restaurant`
  --
  ALTER TABLE `restaurant`
    ADD PRIMARY KEY (`rs_id`);
  
  --
  -- Indexes for table `res_category`
  --
  ALTER TABLE `res_category`
    ADD PRIMARY KEY (`c_id`);
  
  --
  -- Indexes for table `users`
  --
  ALTER TABLE `users`
    ADD PRIMARY KEY (`u_id`);
  
  --
  -- Indexes for table `users_orders`
  --
  ALTER TABLE `users_orders`
    ADD PRIMARY KEY (`o_id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `admin`
  --
  ALTER TABLE `admin`
    MODIFY `adm_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
  
  --
  -- AUTO_INCREMENT for table `admin_codes`
  --
  ALTER TABLE `admin_codes`
    MODIFY `id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
  
  --
  -- AUTO_INCREMENT for table `dishes`
  --
  ALTER TABLE `dishes`
    MODIFY `d_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
  
  --
  -- AUTO_INCREMENT for table `remark`
  --
  ALTER TABLE `remark`
    MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
  
  --
  -- AUTO_INCREMENT for table `restaurant`
  --
  ALTER TABLE `restaurant`
    MODIFY `rs_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;
  
  --
  -- AUTO_INCREMENT for table `res_category`
  --
  ALTER TABLE `res_category`
    MODIFY `c_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
  
  --
  -- AUTO_INCREMENT for table `users`
  --
  ALTER TABLE `users`
    MODIFY `u_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
  
  --
  -- AUTO_INCREMENT for table `users_orders`
  --
  ALTER TABLE `users_orders`
    MODIFY `o_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43;
  COMMIT;
  
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  