-
Notifications
You must be signed in to change notification settings - Fork 0
/
b166e1518483(1).sql
436 lines (353 loc) · 14.5 KB
/
b166e1518483(1).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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 19, 2021 at 05:01 PM
-- Server version: 10.3.29-MariaDB-0+deb10u1
-- PHP Version: 7.3.27-1~deb10u1
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: `b166e1518483`
--
-- --------------------------------------------------------
--
-- Table structure for table `adminInfo`
--
CREATE TABLE `adminInfo` (
`id` int(10) UNSIGNED NOT NULL,
`pseudo` varchar(256) COLLATE latin1_general_ci NOT NULL,
`pwd` varchar(256) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `adminInfo`
--
INSERT INTO `adminInfo` (`id`, `pseudo`, `pwd`) VALUES
(2, 'babyweb', '$2y$10$cYCiRKIY1zxI1NtP/OjWjuyOvVe62LxVX7ZnlacUIQzwGOeHu5Yx6');
-- --------------------------------------------------------
--
-- Table structure for table `alaune`
--
CREATE TABLE `alaune` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(256) COLLATE latin1_general_ci NOT NULL,
`imgAdress` varchar(256) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `alaune`
--
INSERT INTO `alaune` (`id`, `title`, `imgAdress`) VALUES
(41, 'Bacon Burger', 'app/Public/back/img/aLaUne/bacon-burger.jpg'),
(42, 'La Méditérranéenne', 'app/Public/back/img/aLaUne/pizza-mediteraneenne.jpg'),
(43, 'La Pepperoni ', 'app/Public/back/img/aLaUne/pizza-peperonni.jpg'),
(44, 'Le Rustik Burger', 'app/Public/back/img/aLaUne/rustic-burger.jpg'),
(45, 'La Végétarienne', 'app/Public/back/img/aLaUne/pizza-veg.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `boissons`
--
CREATE TABLE `boissons` (
`id` int(10) UNSIGNED NOT NULL,
`productName` varchar(30) COLLATE latin1_general_ci NOT NULL,
`productDescription` varchar(256) COLLATE latin1_general_ci NOT NULL,
`prix` varchar(100) COLLATE latin1_general_ci NOT NULL,
`isAlcool` varchar(10) COLLATE latin1_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `boissons`
--
INSERT INTO `boissons` (`id`, `productName`, `productDescription`, `prix`, `isAlcool`) VALUES
(8, ' Rosé ', 'Bouteille de vin italien Bardolino 75 cl', '8', 'on'),
(9, 'Rouge', 'Bouteille de vin Côte du Rhône 75 cl', '8', 'on'),
(10, 'Heineken ', 'Bouteille de bière Heineken 75 cl', '5', 'on'),
(11, 'Desperados ', 'Bouteille de bières Desperados 0.75 cl', '5', 'on'),
(12, 'San Pellegrino', 'Bouteille San Pellegrino 1L', '3', ''),
(13, ' Oasis', 'Bouteille de Oasis tropical 2L', '4', ''),
(14, 'Nestea ', 'Bouteille de Nestea pêche 1.5L', '3', ''),
(15, ' Breizh Tea', 'Bouteille de Breizh tea 1.5L', '3', ''),
(16, 'Coca-Cola', 'Bouteille de Coca-Cola 1.5L', '3', ''),
(17, 'Breizh Cola', 'Bouteille de Breizh cola 1.5L', '3', ''),
(19, 'sfs', 'dss', '6', 'on');
-- --------------------------------------------------------
--
-- Table structure for table `burger`
--
CREATE TABLE `burger` (
`id` int(10) UNSIGNED NOT NULL,
`productName` varchar(30) COLLATE latin1_general_ci NOT NULL,
`productDescription` varchar(256) COLLATE latin1_general_ci NOT NULL,
`prix` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `burger`
--
INSERT INTO `burger` (`id`, `productName`, `productDescription`, `prix`) VALUES
(1, 'Le Westfarm', 'Compotée de tomates, viande de boeuf, fromage de chèvre, salade roquette, moutarde au miel ', 10),
(2, 'Le Depp Forest', 'Champignons viande de boeuf, cuisinés, oignons caramélisées, tomme noire I.G.P, sauce BBQ', 8),
(6, 'Le Sudiste', 'Filet de poulet mariné, pesto, salade iceberg, poivrons confits, chèvres frais', 8),
(7, 'Le Montagnard', 'Viande de boeuf, compotée d\'oignons caramélisés, morbier, lard griléé, sauce moutarde à l\'ancienne', 8),
(8, 'Le Bzh', 'Viande de boeuf, pommes confites, andouille artisanale, sauce au cidre', 8),
(16, 'Le Bacon', 'Bacon, salade iceberg, tomates, pickles, oignons rouges, sauce maison', 8),
(18, 'Le Burger', 'Tomates, viande de boeuf, salades iceberg, pickles, oignons rouges, sauce maison', 7);
-- --------------------------------------------------------
--
-- Table structure for table `livreur`
--
CREATE TABLE `livreur` (
`id` int(10) UNSIGNED NOT NULL,
`livreurName` varchar(255) CHARACTER SET utf8 NOT NULL,
`livreurPhone` varchar(255) CHARACTER SET utf8 NOT NULL,
`livreurEmail` varchar(255) CHARACTER SET utf8 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `livreur`
--
INSERT INTO `livreur` (`id`, `livreurName`, `livreurPhone`, `livreurEmail`) VALUES
(1, 'zing-hang', '06 00 55 88 73 ', '[email protected]'),
(3, 'Yann4', '06 10 10 45 2600', '[email protected]'),
(4, 'ernesto', '06 10 12 48 78', '[email protected]');
-- --------------------------------------------------------
--
-- Table structure for table `mails`
--
CREATE TABLE `mails` (
`id` int(10) UNSIGNED NOT NULL,
`lastname` varchar(256) COLLATE latin1_general_ci NOT NULL,
`mail` varchar(256) COLLATE latin1_general_ci NOT NULL,
`sujet` varchar(256) COLLATE latin1_general_ci NOT NULL,
`content` varchar(1024) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `mails`
--
INSERT INTO `mails` (`id`, `lastname`, `mail`, `sujet`, `content`) VALUES
(11, 'joe', '[email protected]', 'mexique', 'viva mexico'),
(14, 'Louis', '[email protected]', 'Pizzas Express', 'Hey\r\n\r\nBuy medical disposable face mask to protect your loved ones from the deadly CoronaVirus. The price is $0.28 each. If interested, please check our site: pharmacyoutlets.online\r\n\r\nTo your success,\r\n\r\nLouis\r\nPizzas Express'),
(15, 'Maximilian', '[email protected]', 'Maximilian Fegan', 'New Multifunction Anti-theft Waterproof Sling Bag\r\n\r\nThe best ever SUPER Sling Bag: Drop-proof/Anti-theft/Scratch-resistant/USB Charging\r\n\r\n50% OFF for the next 24 Hours ONLY + FREE Worldwide Shipping for a LIMITED time\r\n\r\nBuy now: fashiondaily.online\r\n\r\nThe Best, \r\n\r\nMaximilian\r\nPizzas Express');
-- --------------------------------------------------------
--
-- Table structure for table `orderList`
--
CREATE TABLE `orderList` (
`order_id` int(11) NOT NULL,
`order_date` date NOT NULL,
`order_price` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`livreur_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `orderList`
--
INSERT INTO `orderList` (`order_id`, `order_date`, `order_price`, `user_id`, `livreur_id`) VALUES
(2, '2021-07-13', 36, 28, 3),
(43, '2021-08-01', 25, 23, 3),
(44, '2021-07-13', 49, 28, 1),
(45, '2021-07-05', 55, 23, 3),
(46, '2021-07-05', 50, 28, 1),
(47, '2021-08-02', 45, 1, 1),
(48, '2021-07-12', 12, 1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `pizzas`
--
CREATE TABLE `pizzas` (
`id` int(10) UNSIGNED NOT NULL,
`productName` varchar(256) COLLATE latin1_general_ci NOT NULL,
`productDescription` varchar(1024) COLLATE latin1_general_ci NOT NULL,
`prixMoyenne` smallint(5) UNSIGNED NOT NULL,
`prixLarge` smallint(5) UNSIGNED NOT NULL,
`isVeg` varchar(256) COLLATE latin1_general_ci DEFAULT NULL,
`isPigless` varchar(256) COLLATE latin1_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `pizzas`
--
INSERT INTO `pizzas` (`id`, `productName`, `productDescription`, `prixMoyenne`, `prixLarge`, `isVeg`, `isPigless`) VALUES
(20, 'Calzone', 'Tomate, mozzarella, jambon, champignons, œuf', 9, 13, '', ''),
(21, 'Chèvre Miel', 'Tomate, mozzarella, jambon, chèvre, crème fraîche, miel', 9, 13, '', ''),
(22, 'Burger', 'Sauce BBQ, mozzarella, oignons, bœuf haché, œuf, dés de tomate, cheddar', 10, 14, '', 'on'),
(24, 'Margharita', ' Tomate, double mozzarella, origan', 7, 11, 'on', 'on'),
(25, 'Végétarienne', 'Tomate, mozzarella, champignons, oignons, poivrons, dés de tomate, herbes, persillade', 9, 13, 'on', 'on'),
(35, 'Orientale', 'Tomate, mozzarella, oignons, poivrons, dés de tomates, merguez, olives, origan', 9, 13, '', 'on'),
(36, 'Fajitas', 'Tomate épicée, mozzarella, poulet, oignons, poivrons, chedar, crème fraîche, guacamole', 9, 13, NULL, 'on'),
(37, 'Nordique', 'Crème fraîche, mozzarella, noix de Saint-Jacques, crevettes, saumon frais, persillade, citron en quartier', 10, 14, 'on', 'on'),
(38, '4 fromages', 'Tomate, mozzarella, cheddar, chèvre, reblochon, crème fraîche', 9, 13, 'on', 'on');
-- --------------------------------------------------------
--
-- Table structure for table `reduc`
--
CREATE TABLE `reduc` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(256) COLLATE latin1_general_ci NOT NULL,
`periode` varchar(256) COLLATE latin1_general_ci NOT NULL,
`condition1` varchar(256) COLLATE latin1_general_ci NOT NULL,
`condition2` varchar(256) COLLATE latin1_general_ci NOT NULL,
`validite` varchar(256) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `reduc`
--
INSERT INTO `reduc` (`id`, `title`, `periode`, `condition1`, `condition2`, `validite`) VALUES
(1, '2ème Pizza à 6€', 'Du lundi au samedi (sauf jours fériés)', 'Minimum de livraison : 15€', 'Valable sur pizzas de prix égal ou inferieur', '31/10/2021'),
(4, '- 2€ sur votre commande', 'Dimanche uniquement', 'Pour 3 pizzas achetées', '', '31/11/2020'),
(5, '1.25L de soda offert ', 'Lundi au jeudi', 'Pour 2 pizzas achetées', '', '31/10/2021'),
(6, '1.25L de soda offert', 'Du vendredi au samedi', 'Pour 3 pizzas achetées', '', '31/10/2021'),
(7, '2 pizzas moyenne 22€50', 'Du vendredi au dimanche.', '', '', '30/10/2021'),
(8, '2 pizzas larges + 1.25L de soda pour 29€50', 'Du lundi au jeudi', 'En livraison', '', '31/10/2021');
-- --------------------------------------------------------
--
-- Table structure for table `slider`
--
CREATE TABLE `slider` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(256) COLLATE latin1_general_ci NOT NULL,
`imgAdress` varchar(256) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `slider`
--
INSERT INTO `slider` (`id`, `title`, `imgAdress`) VALUES
(25, 'livreur de pizza souriant sur fond jaune', 'app/Public/back/img/slides/slide-jaune.jpg'),
(26, 'livreuse de pizza souriante en robe jaune sur fond bleu', 'app/Public/back/img/slides/slide-bleu.jpg'),
(27, 'livreur de pizza souriant sur fond violet', 'app/Public/back/img/slides/slide-violette.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`userId` int(11) NOT NULL,
`userName` varchar(255) COLLATE latin1_general_ci NOT NULL,
`userFirstname` varchar(255) COLLATE latin1_general_ci NOT NULL,
`userAdress` varchar(255) COLLATE latin1_general_ci NOT NULL,
`userPhone` int(11) NOT NULL,
`userMail` varchar(255) COLLATE latin1_general_ci NOT NULL,
`userPWD` varchar(255) COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`userId`, `userName`, `userFirstname`, `userAdress`, `userPhone`, `userMail`, `userPWD`) VALUES
(1, 'anonyme', '0', '0', 0, '0', '0'),
(23, 'fabien', 'le grand', 'Les Duisis 91580 Chauffour-lès-Étréchy', 12, '[email protected]', '$2y$10$i8ImVXt9m3AQ7g6IxzsiHubPjJbeNOxsRawtWjhNFhrfENA.wtxk.'),
(28, 'martine', 'leroy', '45 Avenue Pasteur 49100 Angers', 777, '[email protected]', '$2y$10$7aKPvOV4Cp8XW/Ome6IUye.e.876hC2VJCuVUlkCuzelHK1lOQNRu');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `adminInfo`
--
ALTER TABLE `adminInfo`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `alaune`
--
ALTER TABLE `alaune`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `boissons`
--
ALTER TABLE `boissons`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `burger`
--
ALTER TABLE `burger`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `livreur`
--
ALTER TABLE `livreur`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mails`
--
ALTER TABLE `mails`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orderList`
--
ALTER TABLE `orderList`
ADD PRIMARY KEY (`order_id`);
--
-- Indexes for table `pizzas`
--
ALTER TABLE `pizzas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reduc`
--
ALTER TABLE `reduc`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `slider`
--
ALTER TABLE `slider`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`userId`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `adminInfo`
--
ALTER TABLE `adminInfo`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `alaune`
--
ALTER TABLE `alaune`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT for table `boissons`
--
ALTER TABLE `boissons`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `burger`
--
ALTER TABLE `burger`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `livreur`
--
ALTER TABLE `livreur`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mails`
--
ALTER TABLE `mails`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `pizzas`
--
ALTER TABLE `pizzas`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `reduc`
--
ALTER TABLE `reduc`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `slider`
--
ALTER TABLE `slider`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `userId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
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 */;