-
Notifications
You must be signed in to change notification settings - Fork 1
/
uumresea_foodninja.sql
211 lines (174 loc) · 6.33 KB
/
uumresea_foodninja.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 09, 2019 at 12:06 AM
-- Server version: 10.0.37-MariaDB
-- PHP Version: 7.2.7
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: `uumresea_foodninja`
--
-- --------------------------------------------------------
--
-- Table structure for table `CART`
--
CREATE TABLE `CART` (
`FOODID` varchar(10) NOT NULL,
`USERID` varchar(40) NOT NULL,
`QUANTITY` varchar(10) NOT NULL,
`PRICE` varchar(10) NOT NULL,
`FOODNAME` varchar(30) NOT NULL,
`STATUS` varchar(20) NOT NULL,
`RESTID` varchar(10) NOT NULL,
`ORDERID` varchar(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `CART`
--
INSERT INTO `CART` (`FOODID`, `USERID`, `QUANTITY`, `PRICE`, `FOODNAME`, `STATUS`, `RESTID`, `ORDERID`) VALUES
('12', '0194702493', '1', '5.50', 'Paneer Masalla', 'paid', '2', '08052019-5R8FLGn'),
('19', '0194702493', '1', '3.50', 'Laksa Johor', 'paid', '3', '08052019-5R8FLGn'),
('16', '0194702493', '1', '5.50', 'Nasi Rendang', 'paid', '1', '08052019-qxgbUmp'),
('11', '0194702493', '1', '4.50', 'Chickpea', 'paid', '5', '08052019-qxgbUmp'),
('12', '0194702493', '1', '5.50', 'Paneer Masalla', 'paid', '2', '08052019-qxgbUmp'),
('10', '0194702493', '1', '5.50', 'Pad Thai Noodle', 'paid', '5', '08052019-Oi6XCFF'),
('12', '0194702493', '1', '5.50', 'Paneer Masalla', 'paid', '2', '08052019-Oi6XCFF'),
('18', '0194702493', '1', '4.50', 'Laksa Lemak', 'paid', '3', '08052019-Oi6XCFF'),
('5', '0194702493', '1', '7.50', 'Pizza Cheese', 'paid', '4', '08052019-Oi6XCFF'),
('7', '0194702493', '1', '7.80', 'Paperdele', 'paid', '4', '08052019-Oi6XCFF'),
('9', '0194702493', '1', '6.50', 'Kungpao Chicken', 'paid', '5', '08052019-Oi6XCFF');
-- --------------------------------------------------------
--
-- Table structure for table `FOODS`
--
CREATE TABLE `FOODS` (
`FOODID` int(5) NOT NULL,
`FOODNAME` varchar(50) NOT NULL,
`FOODPRICE` varchar(5) NOT NULL,
`QUANTITY` varchar(5) NOT NULL,
`RESTID` varchar(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `FOODS`
--
INSERT INTO `FOODS` (`FOODID`, `FOODNAME`, `FOODPRICE`, `QUANTITY`, `RESTID`) VALUES
(1, 'Mee Goreng Mamak', '5.00', '18', '1'),
(2, 'Laksa Perak', '4.50', '7', '3'),
(3, 'Roti Canai', '2.00', '74', '2'),
(4, 'Laksam', '2.50', '3', '1'),
(5, 'Pizza Cheese', '7.50', '29', '4'),
(6, 'Bolognese Sausage', '5.50', '28', '4'),
(7, 'Paperdele', '7.80', '48', '4'),
(8, 'Polenta', '10.50', '32', '4'),
(9, 'Kungpao Chicken', '6.50', '28', '5'),
(10, 'Pad Thai Noodle', '5.50', '39', '5'),
(11, 'Chickpea', '4.50', '17', '5'),
(12, 'Paneer Masalla', '5.50', '26', '2'),
(13, 'Kheema Samosa', '4.50', '40', '2'),
(14, 'Chicken Sagwala', '4.50', '40', '2'),
(15, 'Nasi Goreng Biasa', '4.50', '29', '1'),
(16, 'Nasi Rendang', '5.50', '29', '1'),
(17, 'Nasi Lemak Sotong', '5.50', '50', '1'),
(18, 'Laksa Lemak', '4.50', '38', '3'),
(19, 'Laksa Johor', '3.50', '19', '3'),
(20, 'Laksa Penang', '5.50', '30', '3');
-- --------------------------------------------------------
--
-- Table structure for table `ORDERED`
--
CREATE TABLE `ORDERED` (
`ORDERID` varchar(20) NOT NULL,
`USERID` varchar(10) NOT NULL,
`TOTAL` varchar(10) NOT NULL,
`DATE` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ORDERED`
--
INSERT INTO `ORDERED` (`ORDERID`, `USERID`, `TOTAL`, `DATE`) VALUES
('08052019-qxgbUmp', '0194702493', '15.5', '2019-05-08 15:22:51.247162'),
('08052019-Oi6XCFF', '0194702493', '37.3', '2019-05-08 16:05:18.157234');
-- --------------------------------------------------------
--
-- Table structure for table `RESTAURANT`
--
CREATE TABLE `RESTAURANT` (
`RESTID` int(10) NOT NULL,
`NAME` varchar(50) NOT NULL,
`PHONE` varchar(20) NOT NULL,
`ADDRESS` varchar(200) NOT NULL,
`LOCATION` varchar(20) NOT NULL,
`LATITUDE` varchar(30) NOT NULL,
`LONGITUDE` varchar(30) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `RESTAURANT`
--
INSERT INTO `RESTAURANT` (`RESTID`, `NAME`, `PHONE`, `ADDRESS`, `LOCATION`, `LATITUDE`, `LONGITUDE`) VALUES
(1, 'Buluh Madu', '01934558488', 'Jalan Changlun', 'Changlun', '6.433105', '100.436619'),
(2, 'Makcik Kari', '0156766456', 'Jalan Sintok', 'Sintok', '6.447736', '100.524096'),
(3, 'Laksa Changlun', '01944674445', 'Pekan Changlun', 'Changlun', '6.435130', '100.430111'),
(4, 'Mama', '0426665443', 'Mualamat, UUM', 'Sintok', '6.477651', '100.509161'),
(5, 'Makcik Felda', '0194443333', 'Jalan Felda', 'Sintok', '6.493133', '100.478162');
-- --------------------------------------------------------
--
-- Table structure for table `USER`
--
CREATE TABLE `USER` (
`EMAIL` varchar(100) NOT NULL,
`PASSWORD` varchar(60) NOT NULL,
`PHONE` varchar(15) NOT NULL,
`NAME` varchar(100) NOT NULL,
`LOCATION` varchar(15) NOT NULL,
`LATITUDE` varchar(30) NOT NULL,
`LONGITUDE` varchar(30) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `USER`
--
INSERT INTO `USER` (`EMAIL`, `PASSWORD`, `PHONE`, `NAME`, `LOCATION`, `LATITUDE`, `LONGITUDE`) VALUES
('[email protected]', '8cb2237d0679ca88db6464eac60da96345513964', '0194702493', 'Ahmad Hanis', 'Changlun', '6.443224050268126', '100.42504772543909');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `FOODS`
--
ALTER TABLE `FOODS`
ADD PRIMARY KEY (`FOODID`);
--
-- Indexes for table `RESTAURANT`
--
ALTER TABLE `RESTAURANT`
ADD PRIMARY KEY (`RESTID`);
--
-- Indexes for table `USER`
--
ALTER TABLE `USER`
ADD PRIMARY KEY (`EMAIL`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `FOODS`
--
ALTER TABLE `FOODS`
MODIFY `FOODID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `RESTAURANT`
--
ALTER TABLE `RESTAURANT`
MODIFY `RESTID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;