-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfosdb.sql
312 lines (256 loc) · 11.5 KB
/
fosdb.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
-- phpMyAdmin SQL Dump
-- version 5.1.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: July 12, 2023 at 04:30 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 7.4.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `fosdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbladmin`
--
CREATE TABLE `tbladmin` (
`ID` int(11) NOT NULL,
`AdminName` varchar(45) DEFAULT NULL,
`UserName` varchar(45) DEFAULT NULL,
`MobileNumber` bigint(11) DEFAULT NULL,
`Email` varchar(120) DEFAULT NULL,
`Password` varchar(120) DEFAULT NULL,
`AdminRegdate` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbladmin`
--
INSERT INTO `tbladmin` (`ID`, `AdminName`, `UserName`, `MobileNumber`, `Email`, `Password`, `AdminRegdate`) VALUES
(1, 'Admin', 'admin', 7894561238, '[email protected]', 'admin', '2023-04-04 18:30:00');
-- --------------------------------------------------------
--
-- Table structure for table `tblcategory`
--
CREATE TABLE `tblcategory` (
`ID` int(5) NOT NULL,
`CategoryName` varchar(120) DEFAULT NULL,
`CreationDate` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblcategory`
--
INSERT INTO `tblcategory` (`ID`, `CategoryName`, `CreationDate`) VALUES
(3, 'Itallian', '2023-04-04 18:30:00'),
(4, 'Thai', '2023-04-04 18:30:00'),
(5, 'South Indian', '2023-04-04 18:30:00'),
(6, 'North Indian', '2023-04-04 18:30:00'),
(7, 'Desserts', '2023-04-04 18:30:00'),
(8, 'Starters', '2023-04-04 18:30:00'),
(9, 'Chinease', '2023-04-23 18:30:00'),
(10, 'Test Food ', '2023-05-05 18:30:00'),
(12, 'Pizza', '2023-05-08 07:16:08');
-- --------------------------------------------------------
--
-- Table structure for table `tblfood`
--
CREATE TABLE `tblfood` (
`ID` int(10) NOT NULL,
`CategoryName` varchar(120) DEFAULT NULL,
`ItemName` varchar(120) DEFAULT NULL,
`ItemPrice` varchar(120) DEFAULT NULL,
`ItemDes` varchar(500) DEFAULT NULL,
`Image` varchar(120) DEFAULT NULL,
`ItemQty` varchar(120) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblfood`
--
INSERT INTO `tblfood` (`ID`, `CategoryName`, `ItemName`, `ItemPrice`, `ItemDes`, `Image`, `ItemQty`) VALUES
(1, 'Italian', 'Corn Pizza', '190', 'Sprinkle with salt and pepper; let stand 20 minutes. Place pizza crust on a parchment paper-lined baking sheet', 'f97fcb777fbc60235e7cfdf991cb0cfa.jpg', 'Medium'),
(2, 'Italian', 'Corn Pizza', '120', 'Sprinkle with salt and pepper; let stand 20 minutes. Place pizza crust on a parchment paper-lined baking sheet;', 'f97fcb777fbc60235e7cfdf991cb0cfa.jpg', 'Regular'),
(3, 'Italian', 'Corn Pizza', '220', 'Sprinkle with salt and pepper; let stand 20 minutes. Place pizza crust on a parchment paper-lined baking sheet', 'f97fcb777fbc60235e7cfdf991cb0cfa.jpg', 'Large'),
(4, 'Italian', 'Veg Extravaganza Pizza', '450', 'Veg ExtravaganzaA pizza that decidedly staggers', '73323ff74a39e6157cf73ad52cf15c66.jpg', 'Medium'),
(5, 'Italian', 'Veg Extravaganza Pizza', '440', 'Veg ExtravaganzaA pizza that decidedly staggers under an overload of golden corn, exotic black olives, crunchy onions', '9ed5c4756f56317810d7e364ca7f1634.jpg', 'Large'),
(6, 'North Indian', 'Chana Masala', '120', 'To make this chana masala we start with a trio of ingredients found in most Indian curries–onion, garlic, and ginger. ', '0ee2405d162c60e415bfba56a24aca8c.jpg', 'Full'),
(7, 'North Indian', 'Rajma Masala', '125', 'Rajma Masala is a much loved spicy curry in most Indian Households. ', '63d50ef58f33ec97cf928c05deb8ccd3.jpg', 'Full'),
(8, 'South Indian', 'Dosa', '85', 'Dosa are served hot along with sambar, a stuffing of potatoes, and chutney. ', 'd984b4a23552203107391bc98dd0e4dc.jpg', 'Regular'),
(9, 'South Indian', 'Idli', '75', 'Idli are a type of savoury rice cake, originating from the Indian subcontinent and served coconut chutney. ', '0cbe727a2529cc6cd8dcbd40ee53fe2c.jpg', '2 pcs'),
(10, 'South Indian', 'Vada', '60', 'Medu vada served with hot shambhar and coconut chutney ', '66d5785b3c99179f5a5bb7d7d94636dd.jpg', '2 pcs'),
(11, 'North Indian', 'Chole Bhature', '120', 'Chole Bhuture is a combination of chana masala (spicy white chickpeas) and bhatura, ', 'da41d10bb09c6cfac8168435164ff0b3.jpg', '2 pcs'),
(12, 'North Indian', 'Aloo paratha', '85', ' Aloo paratha is served with butter, chutney, or Indian pickles in different parts of northern and western India. ', '8cc336b118e1feb503f9a54f3bdcdf1b.jpg', '2 pieces'),
(13, 'North Indian', 'Mix Pratha', '85', 'veg paratha soft, healthy and delicious whole wheat parathas made with mix vegetables. ... this no onion no garlic veg paratha recipe is pretty flexible. ', '4b4f0a570c7f36f0db9e4f8e7fa60442.jpg', '2 pieces'),
(14, 'North Indian', 'Paneer Paratha.', '95', 'paneer paratha. paneer paratha is an indian flat bread made with cottage cheese stuffing. paneer paratha are popular breakfast recipe in punjabi homes. ', 'a19b8b7095ad0c23ddd95a28c3f85268.jpg', '2 pieces'),
(15, 'Chinease', 'Hakka Noodle', '120', 'Hakka Noodle is one our famous food which is made up by our homemade masale. ', 'f8f34e70f13c6d9e982640e3b39f317b.jpg', 'full'),
(16, 'Chinese', 'Veg Chowmin', '120', 'Veg Chowmien full Plate ', '927f5a1c2bcfff25ff8a936fa98d5f2f.jpg', 'Full');
-- --------------------------------------------------------
--
-- Table structure for table `tblfoodtracking`
--
CREATE TABLE `tblfoodtracking` (
`ID` int(10) NOT NULL,
`OrderId` char(50) DEFAULT NULL,
`remark` varchar(200) DEFAULT NULL,
`status` char(50) DEFAULT NULL,
`StatusDate` timestamp NULL DEFAULT current_timestamp(),
`OrderCanclledByUser` int(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblfoodtracking`
--
INSERT INTO `tblfoodtracking` (`ID`, `OrderId`, `remark`, `status`, `StatusDate`, `OrderCanclledByUser`) VALUES
(1, '111500378', 'Order Confrimed', 'Order Confirmed', '2023-06-05 12:31:01', NULL),
(2, '111500378', 'Food is preparing', 'Food being Prepared', '2023-06-05 12:31:38', NULL),
(3, '111500378', 'Food delivered sucessfully', 'Food Delivered', '2023-06-05 12:32:37', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tblorderaddresses`
--
CREATE TABLE `tblorderaddresses` (
`ID` int(11) NOT NULL,
`UserId` char(100) DEFAULT NULL,
`Ordernumber` char(100) DEFAULT NULL,
`Flatnobuldngno` varchar(255) DEFAULT NULL,
`StreetName` varchar(255) DEFAULT NULL,
`Area` varchar(255) DEFAULT NULL,
`Landmark` varchar(255) DEFAULT NULL,
`City` varchar(255) DEFAULT NULL,
`OrderTime` timestamp NOT NULL DEFAULT current_timestamp(),
`OrderFinalStatus` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblorderaddresses`
--
INSERT INTO `tblorderaddresses` (`ID`, `UserId`, `Ordernumber`, `Flatnobuldngno`, `StreetName`, `Area`, `Landmark`, `City`, `OrderTime`, `OrderFinalStatus`) VALUES
(1, '1', '409347008', 'H5534 ', 'XYZ Streer', 'Patna', 'test Landmark', 'Patna', '2023-06-04 16:34:14', NULL),
(2, '3', '111500378', 'H 52312', 'XYZ Street', 'Patna', 'ABC Landmark', 'Patn', '2023-06-05 12:29:51', 'Food Delivered');
-- --------------------------------------------------------
--
-- Table structure for table `tblorders`
--
CREATE TABLE `tblorders` (
`ID` int(11) NOT NULL,
`UserId` char(10) DEFAULT NULL,
`FoodId` char(10) DEFAULT NULL,
`FoodQty` int(11) DEFAULT NULL,
`IsOrderPlaced` int(11) DEFAULT NULL,
`OrderNumber` char(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblorders`
--
INSERT INTO `tblorders` (`ID`, `UserId`, `FoodId`, `FoodQty`, `IsOrderPlaced`, `OrderNumber`) VALUES
(1, '1', '8', 1, 1, '409347008'),
(2, '1', '7', 1, 1, '409347008'),
(3, '3', '1', 1, 1, '111500378'),
(4, '3', '5', 2, 1, '111500378');
-- --------------------------------------------------------
--
-- Table structure for table `tbluser`
--
CREATE TABLE `tbluser` (
`ID` int(10) NOT NULL,
`FirstName` varchar(45) DEFAULT NULL,
`LastName` varchar(50) DEFAULT NULL,
`Email` varchar(120) DEFAULT NULL,
`MobileNumber` bigint(11) DEFAULT NULL,
`Password` varchar(120) DEFAULT NULL,
`RegDate` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbluser`
--
INSERT INTO `tbluser` (`ID`, `FirstName`, `LastName`, `Email`, `MobileNumber`, `Password`, `RegDate`) VALUES
(1, 'Amit', 'Kumar', '[email protected]', 1234567890, 'f925916e2754e5e03f75dd58a5733251', '2023-06-04 04:31:04'),
(3, 'Test', 'User', '[email protected]', 1236547890, 'f925916e2754e5e03f75dd58a5733251', '2023-06-05 12:28:41'),
(4, 'Nitesh', 'Gupta', '[email protected]', 9695959595, 'e10adc3949ba59abbe56e057f20f883e', '2023-12-08 07:10:26'),
(5, 'aaryaashree', 'l', '[email protected]', 8494832345, '123456', '2023-12-08 07:12:40');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbladmin`
--
ALTER TABLE `tbladmin`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `tblcategory`
--
ALTER TABLE `tblcategory`
ADD PRIMARY KEY (`ID`),
ADD KEY `CategoryName` (`CategoryName`);
--
-- Indexes for table `tblfood`
--
ALTER TABLE `tblfood`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `tblfoodtracking`
--
ALTER TABLE `tblfoodtracking`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `tblorderaddresses`
--
ALTER TABLE `tblorderaddresses`
ADD PRIMARY KEY (`ID`),
ADD KEY `UserId` (`UserId`,`Ordernumber`);
--
-- Indexes for table `tblorders`
--
ALTER TABLE `tblorders`
ADD PRIMARY KEY (`ID`),
ADD KEY `UserId` (`UserId`,`FoodId`,`OrderNumber`);
--
-- Indexes for table `tbluser`
--
ALTER TABLE `tbluser`
ADD PRIMARY KEY (`ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbladmin`
--
ALTER TABLE `tbladmin`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tblcategory`
--
ALTER TABLE `tblcategory`
MODIFY `ID` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `tblfood`
--
ALTER TABLE `tblfood`
MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `tblfoodtracking`
--
ALTER TABLE `tblfoodtracking`
MODIFY `ID` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tblorderaddresses`
--
ALTER TABLE `tblorderaddresses`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tblorders`
--
ALTER TABLE `tblorders`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `tbluser`
--
ALTER TABLE `tbluser`
MODIFY `ID` 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 */;