Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0..
Decoded Output download
<? -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 27, 2022 at 03:22 PM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `onlinefoodphp`
--
-- --------------------------------------------------------
--
-- 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
(1, 'admin', 'fd83443ae9b8351b835f18d2941a0bee', '[email protected]', '', '2023-05-27 13:21:52');
-- --------------------------------------------------------
--
-- 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
(1, 1, 'Yorkshire Lamb Patties', 'Lamb patties which melt in your mouth, and are quick and easy to make. Served hot with a crisp salad.', '14.00', '62908867a48e4.jpg'),
(2, 1, 'Lobster Thermidor', 'Lobster Thermidor is a French dish of lobster meat cooked in a rich wine sauce, stuffed back into a lobster shell, and browned.', '36.00', '629089fee52b9.jpg'),
(3, 4, 'Chicken Madeira', 'Chicken Madeira, like Chicken Marsala, is made with chicken, mushrooms, and a special fortified wine. But, the wines are different;', '23.00', '62908bdf2f581.jpg'),
(4, 1, 'Stuffed Jacket Potatoes', 'Deep fry whole potatoes in oil for 8-10 minutes or coat each potato with little oil. Mix the onions, garlic, tomatoes and mushrooms. Add yoghurt, ginger, garlic, chillies, coriander', '8.00', '62908d393465b.jpg'),
(5, 2, 'Pink Spaghetti Gamberoni', 'Spaghetti with prawns in a fresh tomato sauce. This dish originates from Southern Italy and with the combination of prawns, garlic, chilli and pasta. Garnish each with remaining tablespoon parsley.', '21.00', '606d7491a9d13.jpg'),
(6, 2, 'Cheesy Mashed Potato', 'Deliciously Cheesy Mashed Potato. The ultimate mash for your Thanksgiving table or the perfect accompaniment to vegan sausage casserole. Everyone will love it\'s fluffy, cheesy.', '5.00', '606d74c416da5.jpg'),
(7, 2, 'Crispy Chicken Strips', 'Fried chicken strips, served with special honey mustard sauce.', '8.00', '606d74f6ecbbb.jpg'),
(8, 2, 'Lemon Grilled Chicken And Pasta', 'Marinated rosemary grilled chicken breast served with mashed potatoes and your choice of pasta.', '11.00', '606d752a209c3.jpg'),
(9, 3, 'Vegetable Fried Rice', 'Chinese rice wok with cabbage, beans, carrots, and spring onions.', '5.00', '606d7575798fb.jpg'),
(10, 3, 'Prawn Crackers', '12 pieces deep-fried prawn crackers', '7.00', '606d75a7e21ec.jpg'),
(11, 3, 'Spring Rolls', 'Lightly seasoned shredded cabbage, onion and carrots, wrapped in house made spring roll wrappers, deep fried to golden brown.', '6.00', '606d75ce105d0.jpg'),
(12, 3, 'Manchurian Chicken', 'Chicken pieces slow cooked with spring onions in our house made manchurian style sauce.', '11.00', '606d7600dc54c.jpg'),
(13, 4, ' Buffalo Wings', 'Fried chicken wings tossed in spicy Buffalo sauce served with crisp celery sticks and Blue cheese dip.', '11.00', '606d765f69a19.jpg'),
(14, 4, 'Mac N Cheese Bites', 'Served with our traditional spicy queso and marinara sauce.', '9.00', '606d768a1b2a1.jpg'),
(15, 4, 'Signature Potato Twisters', 'Spiral sliced potatoes, topped with our traditional spicy queso, Monterey Jack cheese, pico de gallo, sour cream and fresh cilantro.', '6.00', '606d76ad0c0cb.jpg'),
(16, 4, 'Meatballs Penne Pasta', 'Garlic-herb beef meatballs tossed in our house-made marinara sauce and penne pasta topped with fresh parsley.', '10.00', '606d76eedbb99.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
(1, 2, 'in process', AES_ENCRYPT('hi', 'nhom6'), '2022-05-01 05:17:49'),
(2, 3, 'in process', AES_ENCRYPT('hi', 'nhom6'), '2022-05-27 11:01:30'),
(3, 2, 'closed', AES_ENCRYPT('thank you for your order!', 'nhom6'), '2022-05-27 11:11:41'),
(4, 3, 'closed', AES_ENCRYPT('go go go', 'nhom6'), '2022-05-27 11:42:35'),
(5, 4, 'in process', AES_ENCRYPT('hihi', 'nhom6'), '2022-05-27 11:42:55'),
(6, 1, 'rejected', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 11:43:26'),
(7, 7, 'in process', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:24'),
(8, 8, 'in process', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:38'),
(9, 9, 'rejected', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:53'),
(10, 7, 'closed', AES_ENCRYPT('thank you for your ordering with us', 'nhom6'), '2022-05-27 13:04:33'),
(11, 8, 'closed', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:05:24'),
(12, 5, 'closed', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:18:03'),
(13, 10, 'in process', AES_ENCRYPT('DBS401{nhom6_flag_2_1455}', 'nhom6'), '2023-06-15 0:05:24');
-- --------------------------------------------------------
--
-- 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
(1, 1, 'North Street Tavern', '[email protected]', '3547854700', 'www.northstreettavern.com', '8am', '8pm', 'mon-sat', '1128 North St, White Plains', '6290877b473ce.jpg', '2022-05-27 08:10:35'),
(2, 2, 'Eataly', '[email protected]', '0557426406', 'www.eataly.com', '11am', '9pm', 'Mon-Sat', '800 Boylston St, Boston', '606d720b5fc71.jpg', '2022-05-27 08:06:41'),
(3, 3, 'Nan Xiang Xiao Long Bao', '[email protected]', '1458745855', 'www.nanxiangbao45.com', '9am', '8pm', 'mon-sat', 'Queens, New York', '6290860e72d1e.jpg', '2022-05-27 08:04:30'),
(4, 4, 'Highlands Bar & Grill', '[email protected]', '6545687458', 'www.hbg.com', '7am', '8pm', 'mon-sat', '812 Walter Street', '6290af6f81887.jpg', '2022-05-27 11:01:03');
-- --------------------------------------------------------
--
-- 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
(1, 'Continental', '2022-05-27 08:07:35'),
(2, 'Italian', '2021-04-07 08:45:23'),
(3, 'Chinese', '2021-04-07 08:45:25'),
(4, 'American', '2021-04-07 08:45:28');
-- --------------------------------------------------------
--
-- 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` varchar(222) 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
(1, 'eric', 'Eric', 'Lopez', '[email protected]', '1458965547', 'a32de55ffd7a9c4101a0c5c8788b38ed', AES_ENCRYPT('87 Armbrester Drive', 'nhom6'), 1, '2022-05-27 08:40:36'),
(2, 'harry', 'Harry', 'Holt', '[email protected]', '3578545458', 'bc28715006af20d0e961afd053a984d9', AES_ENCRYPT('33 Stadium Drive', 'nhom6'), 1, '2022-05-27 08:41:07'),
(3, 'james', 'James', 'Duncan', '[email protected]', '0258545696', '58b2318af54435138065ee13dd8bea16', AES_ENCRYPT('67 Hiney Road', 'nhom6'), 1, '2022-05-27 08:41:37'),
(4, 'christine', 'Christine', 'Moore', '[email protected]', '7412580010', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('114 Test Address', 'nhom6'), 1, '2022-05-01 05:14:42'),
(5, 'scott', 'Scott', 'Miller', '[email protected]', '7896547850', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('63 Charack Road', 'nhom6'), 1, '2022-05-27 10:53:51'),
(6, 'liamoore', 'Liam', 'Moore', '[email protected]', '7896969696', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('122 Bleck Street', 'nhom6'), 1, '2022-05-27 12:57:00'),
(2001, 'flag', 'flag', 'flag', 'DBS401{nhom6_flag_1_0942}', '0123456789', '561d1a8cede5dac71616bebc22ea4d4f', AES_ENCRYPT('DBS401{nhom6_flag_3_1168}', 'nhom6'), 1, '2023-05-27 12:57:00'),
(2002, 'quan', 'quan', 'quan', '[email protected]', '0999999999', '717b4001f8f78047e168ac85b31b5359', AES_ENCRYPT('fpt', 'nhom6'), 1, '2023-05-27 0:57:00');
-- --------------------------------------------------------
--
-- 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
(1, 4, 'Spring Rolls', 2, '6.00', 'rejected', '2022-05-27 11:43:26'),
(2, 4, 'Prawn Crackers', 1, '7.00', 'closed', '2022-05-27 11:11:41'),
(3, 5, 'Chicken Madeira', 1, '23.00', 'closed', '2022-05-27 11:42:35'),
(4, 5, 'Cheesy Mashed Potato', 1, '5.00', 'in process', '2022-05-27 11:42:55'),
(5, 5, 'Meatballs Penne Pasta', 1, '10.00', 'closed', '2022-05-27 13:18:03'),
(6, 5, 'Yorkshire Lamb Patties', 1, '14.00', NULL, '2022-05-27 11:40:51'),
(7, 6, 'Yorkshire Lamb Patties', 1, '14.00', 'closed', '2022-05-27 13:04:33'),
(8, 6, 'Lobster Thermidor', 1, '36.00', 'closed', '2022-05-27 13:05:24'),
(9, 6, 'Stuffed Jacket Potatoes', 1, '8.00', 'rejected', '2022-05-27 13:03:53'),
(10, 2001, 'Stuffed Jacket Potatoes', 1, '8.00', 'in process', '2023-06-15 0:05:24');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`adm_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=2;
--
-- AUTO_INCREMENT for table `dishes`
--
ALTER TABLE `dishes`
MODIFY `d_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `remark`
--
ALTER TABLE `remark`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `restaurant`
--
ALTER TABLE `restaurant`
MODIFY `rs_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `res_category`
--
ALTER TABLE `res_category`
MODIFY `c_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `u_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users_orders`
--
ALTER TABLE `users_orders`
MODIFY `o_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
/*!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 */;
?>
Did this file decode correctly?
Original Code
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 27, 2022 at 03:22 PM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `onlinefoodphp`
--
-- --------------------------------------------------------
--
-- 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
(1, 'admin', 'fd83443ae9b8351b835f18d2941a0bee', '[email protected]', '', '2023-05-27 13:21:52');
-- --------------------------------------------------------
--
-- 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
(1, 1, 'Yorkshire Lamb Patties', 'Lamb patties which melt in your mouth, and are quick and easy to make. Served hot with a crisp salad.', '14.00', '62908867a48e4.jpg'),
(2, 1, 'Lobster Thermidor', 'Lobster Thermidor is a French dish of lobster meat cooked in a rich wine sauce, stuffed back into a lobster shell, and browned.', '36.00', '629089fee52b9.jpg'),
(3, 4, 'Chicken Madeira', 'Chicken Madeira, like Chicken Marsala, is made with chicken, mushrooms, and a special fortified wine. But, the wines are different;', '23.00', '62908bdf2f581.jpg'),
(4, 1, 'Stuffed Jacket Potatoes', 'Deep fry whole potatoes in oil for 8-10 minutes or coat each potato with little oil. Mix the onions, garlic, tomatoes and mushrooms. Add yoghurt, ginger, garlic, chillies, coriander', '8.00', '62908d393465b.jpg'),
(5, 2, 'Pink Spaghetti Gamberoni', 'Spaghetti with prawns in a fresh tomato sauce. This dish originates from Southern Italy and with the combination of prawns, garlic, chilli and pasta. Garnish each with remaining tablespoon parsley.', '21.00', '606d7491a9d13.jpg'),
(6, 2, 'Cheesy Mashed Potato', 'Deliciously Cheesy Mashed Potato. The ultimate mash for your Thanksgiving table or the perfect accompaniment to vegan sausage casserole. Everyone will love it\'s fluffy, cheesy.', '5.00', '606d74c416da5.jpg'),
(7, 2, 'Crispy Chicken Strips', 'Fried chicken strips, served with special honey mustard sauce.', '8.00', '606d74f6ecbbb.jpg'),
(8, 2, 'Lemon Grilled Chicken And Pasta', 'Marinated rosemary grilled chicken breast served with mashed potatoes and your choice of pasta.', '11.00', '606d752a209c3.jpg'),
(9, 3, 'Vegetable Fried Rice', 'Chinese rice wok with cabbage, beans, carrots, and spring onions.', '5.00', '606d7575798fb.jpg'),
(10, 3, 'Prawn Crackers', '12 pieces deep-fried prawn crackers', '7.00', '606d75a7e21ec.jpg'),
(11, 3, 'Spring Rolls', 'Lightly seasoned shredded cabbage, onion and carrots, wrapped in house made spring roll wrappers, deep fried to golden brown.', '6.00', '606d75ce105d0.jpg'),
(12, 3, 'Manchurian Chicken', 'Chicken pieces slow cooked with spring onions in our house made manchurian style sauce.', '11.00', '606d7600dc54c.jpg'),
(13, 4, ' Buffalo Wings', 'Fried chicken wings tossed in spicy Buffalo sauce served with crisp celery sticks and Blue cheese dip.', '11.00', '606d765f69a19.jpg'),
(14, 4, 'Mac N Cheese Bites', 'Served with our traditional spicy queso and marinara sauce.', '9.00', '606d768a1b2a1.jpg'),
(15, 4, 'Signature Potato Twisters', 'Spiral sliced potatoes, topped with our traditional spicy queso, Monterey Jack cheese, pico de gallo, sour cream and fresh cilantro.', '6.00', '606d76ad0c0cb.jpg'),
(16, 4, 'Meatballs Penne Pasta', 'Garlic-herb beef meatballs tossed in our house-made marinara sauce and penne pasta topped with fresh parsley.', '10.00', '606d76eedbb99.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
(1, 2, 'in process', AES_ENCRYPT('hi', 'nhom6'), '2022-05-01 05:17:49'),
(2, 3, 'in process', AES_ENCRYPT('hi', 'nhom6'), '2022-05-27 11:01:30'),
(3, 2, 'closed', AES_ENCRYPT('thank you for your order!', 'nhom6'), '2022-05-27 11:11:41'),
(4, 3, 'closed', AES_ENCRYPT('go go go', 'nhom6'), '2022-05-27 11:42:35'),
(5, 4, 'in process', AES_ENCRYPT('hihi', 'nhom6'), '2022-05-27 11:42:55'),
(6, 1, 'rejected', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 11:43:26'),
(7, 7, 'in process', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:24'),
(8, 8, 'in process', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:38'),
(9, 9, 'rejected', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:03:53'),
(10, 7, 'closed', AES_ENCRYPT('thank you for your ordering with us', 'nhom6'), '2022-05-27 13:04:33'),
(11, 8, 'closed', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:05:24'),
(12, 5, 'closed', AES_ENCRYPT('thank you', 'nhom6'), '2022-05-27 13:18:03'),
(13, 10, 'in process', AES_ENCRYPT('DBS401{nhom6_flag_2_1455}', 'nhom6'), '2023-06-15 0:05:24');
-- --------------------------------------------------------
--
-- 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
(1, 1, 'North Street Tavern', '[email protected]', '3547854700', 'www.northstreettavern.com', '8am', '8pm', 'mon-sat', '1128 North St, White Plains', '6290877b473ce.jpg', '2022-05-27 08:10:35'),
(2, 2, 'Eataly', '[email protected]', '0557426406', 'www.eataly.com', '11am', '9pm', 'Mon-Sat', '800 Boylston St, Boston', '606d720b5fc71.jpg', '2022-05-27 08:06:41'),
(3, 3, 'Nan Xiang Xiao Long Bao', '[email protected]', '1458745855', 'www.nanxiangbao45.com', '9am', '8pm', 'mon-sat', 'Queens, New York', '6290860e72d1e.jpg', '2022-05-27 08:04:30'),
(4, 4, 'Highlands Bar & Grill', '[email protected]', '6545687458', 'www.hbg.com', '7am', '8pm', 'mon-sat', '812 Walter Street', '6290af6f81887.jpg', '2022-05-27 11:01:03');
-- --------------------------------------------------------
--
-- 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
(1, 'Continental', '2022-05-27 08:07:35'),
(2, 'Italian', '2021-04-07 08:45:23'),
(3, 'Chinese', '2021-04-07 08:45:25'),
(4, 'American', '2021-04-07 08:45:28');
-- --------------------------------------------------------
--
-- 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` varchar(222) 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
(1, 'eric', 'Eric', 'Lopez', '[email protected]', '1458965547', 'a32de55ffd7a9c4101a0c5c8788b38ed', AES_ENCRYPT('87 Armbrester Drive', 'nhom6'), 1, '2022-05-27 08:40:36'),
(2, 'harry', 'Harry', 'Holt', '[email protected]', '3578545458', 'bc28715006af20d0e961afd053a984d9', AES_ENCRYPT('33 Stadium Drive', 'nhom6'), 1, '2022-05-27 08:41:07'),
(3, 'james', 'James', 'Duncan', '[email protected]', '0258545696', '58b2318af54435138065ee13dd8bea16', AES_ENCRYPT('67 Hiney Road', 'nhom6'), 1, '2022-05-27 08:41:37'),
(4, 'christine', 'Christine', 'Moore', '[email protected]', '7412580010', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('114 Test Address', 'nhom6'), 1, '2022-05-01 05:14:42'),
(5, 'scott', 'Scott', 'Miller', '[email protected]', '7896547850', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('63 Charack Road', 'nhom6'), 1, '2022-05-27 10:53:51'),
(6, 'liamoore', 'Liam', 'Moore', '[email protected]', '7896969696', '5f4dcc3b5aa765d61d8327deb882cf99', AES_ENCRYPT('122 Bleck Street', 'nhom6'), 1, '2022-05-27 12:57:00'),
(2001, 'flag', 'flag', 'flag', 'DBS401{nhom6_flag_1_0942}', '0123456789', '561d1a8cede5dac71616bebc22ea4d4f', AES_ENCRYPT('DBS401{nhom6_flag_3_1168}', 'nhom6'), 1, '2023-05-27 12:57:00'),
(2002, 'quan', 'quan', 'quan', '[email protected]', '0999999999', '717b4001f8f78047e168ac85b31b5359', AES_ENCRYPT('fpt', 'nhom6'), 1, '2023-05-27 0:57:00');
-- --------------------------------------------------------
--
-- 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
(1, 4, 'Spring Rolls', 2, '6.00', 'rejected', '2022-05-27 11:43:26'),
(2, 4, 'Prawn Crackers', 1, '7.00', 'closed', '2022-05-27 11:11:41'),
(3, 5, 'Chicken Madeira', 1, '23.00', 'closed', '2022-05-27 11:42:35'),
(4, 5, 'Cheesy Mashed Potato', 1, '5.00', 'in process', '2022-05-27 11:42:55'),
(5, 5, 'Meatballs Penne Pasta', 1, '10.00', 'closed', '2022-05-27 13:18:03'),
(6, 5, 'Yorkshire Lamb Patties', 1, '14.00', NULL, '2022-05-27 11:40:51'),
(7, 6, 'Yorkshire Lamb Patties', 1, '14.00', 'closed', '2022-05-27 13:04:33'),
(8, 6, 'Lobster Thermidor', 1, '36.00', 'closed', '2022-05-27 13:05:24'),
(9, 6, 'Stuffed Jacket Potatoes', 1, '8.00', 'rejected', '2022-05-27 13:03:53'),
(10, 2001, 'Stuffed Jacket Potatoes', 1, '8.00', 'in process', '2023-06-15 0:05:24');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`adm_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=2;
--
-- AUTO_INCREMENT for table `dishes`
--
ALTER TABLE `dishes`
MODIFY `d_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `remark`
--
ALTER TABLE `remark`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `restaurant`
--
ALTER TABLE `restaurant`
MODIFY `rs_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `res_category`
--
ALTER TABLE `res_category`
MODIFY `c_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `u_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users_orders`
--
ALTER TABLE `users_orders`
MODIFY `o_id` int(222) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
/*!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 */;
Function Calls
None |
Stats
MD5 | 7a866dc19c374d2616017623f483a74e |
Eval Count | 0 |
Decode Time | 130 ms |