-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDump20220602.sql
639 lines (566 loc) · 75.5 KB
/
Dump20220602.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
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
-- MySQL dump 10.13 Distrib 8.0.29, for macos12 (x86_64)
--
-- Host: localhost Database: atcoffee
-- ------------------------------------------------------
-- Server version 8.0.28
/*!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 */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `bill`
--
DROP TABLE IF EXISTS `bill`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bill` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`address` varchar(255) DEFAULT NULL,
`amount` float NOT NULL,
`discount` int NOT NULL,
`price` float NOT NULL,
`status` varchar(255) DEFAULT NULL,
`customer_id` bigint DEFAULT NULL,
`payment_id` bigint DEFAULT NULL,
`promotion_id` bigint DEFAULT NULL,
`reward_id` bigint DEFAULT NULL,
`staff_id` bigint DEFAULT NULL,
`store_id` bigint DEFAULT NULL,
`point` int NOT NULL,
PRIMARY KEY (`id`),
KEY `FK85s80t91fj3va97wxjir26pg2` (`customer_id`),
KEY `FKivsv2kk65fwd2wf855n0bjqvw` (`payment_id`),
KEY `FKrbaci95xy5me5dtw25yvmpq9k` (`promotion_id`),
KEY `FK5aqtrv6pki1dbj0ehugjbdhx6` (`reward_id`),
KEY `FKs7qo7bcepagt9l0s4c8vo68r4` (`staff_id`),
KEY `FKj414nnlhhlgjk7lo8f7braaft` (`store_id`),
CONSTRAINT `FK5aqtrv6pki1dbj0ehugjbdhx6` FOREIGN KEY (`reward_id`) REFERENCES `reward` (`id`),
CONSTRAINT `FK85s80t91fj3va97wxjir26pg2` FOREIGN KEY (`customer_id`) REFERENCES `user` (`id`),
CONSTRAINT `FKivsv2kk65fwd2wf855n0bjqvw` FOREIGN KEY (`payment_id`) REFERENCES `payment` (`id`),
CONSTRAINT `FKj414nnlhhlgjk7lo8f7braaft` FOREIGN KEY (`store_id`) REFERENCES `store` (`id`),
CONSTRAINT `FKrbaci95xy5me5dtw25yvmpq9k` FOREIGN KEY (`promotion_id`) REFERENCES `promotion` (`id`),
CONSTRAINT `FKs7qo7bcepagt9l0s4c8vo68r4` FOREIGN KEY (`staff_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=132 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bill`
--
LOCK TABLES `bill` WRITE;
/*!40000 ALTER TABLE `bill` DISABLE KEYS */;
INSERT INTO `bill` VALUES (50,'BI63966689','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:24',1,'2 Le Van Viet Hiep Binh quan 9',92310,23690,108600,'COMPLETED',53,1,1,NULL,2,1,92),(51,'BI63966686','staff','2021-12-16 22:22:21','staff','2021-12-16 22:22:24',1,'2 Le Van Viet Hiep Binh quan 9',113150,11850,113150,'COMPLETED',53,1,NULL,NULL,2,1,113),(52,'BI63966690','staff','2021-12-16 22:22:31','staff','2021-12-16 22:22:33',1,'2 Le Van Viet Hiep Binh quan 9',57000,3000,57000,'COMPLETED',53,1,NULL,NULL,2,1,57),(53,'BI63966975','staff','2021-12-16 23:46:00','staff','2021-12-16 23:46:00',1,'2 Le Van Viet Hiep Binh quan 9',81700,4300,81700,'CANCELED',53,1,NULL,NULL,2,1,81),(54,'BI63967254','staff','2021-12-16 23:46:01','staff','2021-12-16 23:46:03',1,'2 Le Van Viet Hiep Binh quan 9',54800,1200,54800,'COMPLETED',53,1,NULL,NULL,2,1,54),(55,'BI63967265','staff','2021-12-16 23:46:04','staff','2021-12-16 23:46:06',1,'2 Le Van Viet Hiep Binh quan 9',57650,1350,57650,'COMPLETED',53,1,NULL,NULL,2,1,57),(56,'BI63967324','staff','2021-12-20 01:28:23','staff','2021-12-20 02:04:05',1,'2 Le Van Viet Hiep Binh quan 9',122300,11700,127300,'COMPLETED',53,1,NULL,1,2,1,122),(57,'BI64016678','staff','2021-12-22 17:06:39','staff','2021-12-22 17:06:40',1,'Thủ Đức, Hồ Chí Minh',51300,2700,51300,'CANCELED',83,1,NULL,NULL,2,1,51),(58,'BI64016679','staff','2021-12-22 17:06:41','staff','2021-12-22 17:06:41',1,'Thủ Đức, Hồ Chí Minh',113700,4300,113700,'CANCELED',83,1,NULL,NULL,2,1,113),(59,'BI64016684','staff','2021-12-22 17:06:42','staff','2021-12-22 17:06:42',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'CANCELED',83,1,NULL,NULL,2,1,20),(60,'BI64016692','staff','2021-12-22 17:06:45','staff','2021-12-22 17:06:47',1,'Thủ Đức, Hồ Chí Minh',44650,2350,44650,'COMPLETED',83,1,NULL,NULL,2,1,44),(61,'BI64016592','staff','2021-12-22 17:06:50','staff','2021-12-22 17:06:56',1,'Thủ Đức, Hồ Chí Minh',56050,2950,56050,'COMPLETED',83,1,NULL,NULL,2,1,56),(62,'BI64016597','staff','2021-12-22 17:06:51','staff','2021-12-22 17:06:54',1,'Thủ Đức, Hồ Chí Minh',25650,1350,25650,'COMPLETED',83,1,NULL,NULL,2,1,25),(63,'BI64016666','staff','2021-12-22 17:06:52','staff','2021-12-22 17:06:55',1,'Thủ Đức, Hồ Chí Minh',70300,3700,70300,'COMPLETED',83,1,NULL,NULL,2,1,70),(64,'BI64016687','staff','2021-12-22 17:06:59','staff','2021-12-22 17:07:00',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'COMPLETED',83,1,NULL,NULL,2,1,20),(65,'BI64016694','staff','2021-12-22 17:07:02','staff','2021-12-22 17:07:02',1,'Thủ Đức, Hồ Chí Minh',14250,750,14250,'CANCELED',83,1,NULL,NULL,2,1,14),(66,'BI64016702','staff','2021-12-22 17:07:03','staff','2021-12-22 17:07:03',1,'Thủ Đức, Hồ Chí Minh',33250,1750,33250,'CANCELED',83,1,NULL,NULL,2,1,33),(67,'BI64016703','staff','2021-12-22 17:13:26','staff','2021-12-22 17:13:26',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'CANCELED',83,1,NULL,NULL,2,1,20),(68,'BI64016713','staff','2021-12-22 17:13:26','staff','2021-12-22 17:13:26',1,'Thủ Đức, Hồ Chí Minh',57000,3000,57000,'CANCELED',83,1,NULL,NULL,2,1,57),(69,'BI64016720','staff','2021-12-22 17:13:27','staff','2021-12-22 17:13:27',1,'Thủ Đức, Hồ Chí Minh',65550,3450,65550,'CANCELED',83,1,NULL,NULL,2,1,65),(70,'BI64016764','staff','2021-12-22 17:13:28','staff','2021-12-22 17:13:28',1,'Thủ Đức, Hồ Chí Minh',54450,4550,54450,'CANCELED',83,1,NULL,NULL,2,1,54),(71,'BI64016773','staff','2021-12-22 17:13:29','staff','2021-12-22 17:13:29',1,'Thủ Đức, Hồ Chí Minh',20400,3600,20400,'CANCELED',83,1,NULL,NULL,2,1,20),(72,'BI64018220','staff','2021-12-22 21:22:57','staff','2021-12-22 22:26:29',1,'Thủ Đức, Hồ Chí Minh',23750,1250,23750,'COMPLETED',83,1,NULL,NULL,2,1,23),(73,'BI64018219','staff','2021-12-22 21:26:27','staff','2021-12-22 23:34:34',1,'Thủ Đức, Hồ Chí Minh',73150,3850,73150,'COMPLETED',83,1,NULL,NULL,2,1,73),(74,'BI64016853','staff','2021-12-22 23:35:00','staff','2021-12-23 13:22:17',1,'Thủ Đức, Hồ Chí Minh',99900,10100,99900,'COMPLETED',83,1,NULL,NULL,2,1,99),(75,'BI64016839','staff','2021-12-22 23:36:57','staff','2021-12-23 13:43:34',1,'Thủ Đức, Hồ Chí Minh',60800,3200,60800,'COMPLETED',83,1,NULL,NULL,2,1,60),(76,'BI64016852','staff','2021-12-23 13:24:23','staff','2021-12-23 13:42:07',1,'Thủ Đức, Hồ Chí Minh',60800,3200,60800,'COMPLETED',83,1,NULL,NULL,2,1,60),(77,'BI64016797','staff','2021-12-23 20:30:46','staff','2021-12-23 20:41:10',1,'Thủ Đức, Hồ Chí Minh',79800,4200,79800,'COMPLETED',83,1,NULL,NULL,2,1,79),(78,'BI64016777','staff','2021-12-23 20:42:19','staff','2021-12-23 22:31:59',1,'Thủ Đức, Hồ Chí Minh',42750,2250,42750,'COMPLETED',83,1,NULL,NULL,2,1,42),(79,'BI64027357','staff','2021-12-23 22:33:18','staff','2021-12-23 22:46:48',1,'Thủ Đức, Hồ Chí Minh',51300,2700,51300,'COMPLETED',83,1,NULL,NULL,2,1,51),(80,'BI64027474','staff','2021-12-23 22:53:45','staff','2021-12-24 01:12:51',1,'Thủ Đức, Hồ Chí Minh',23750,1250,23750,'COMPLETED',83,1,NULL,NULL,2,1,23),(81,'BI64027476','staff','2021-12-24 00:13:04','staff','2021-12-24 01:09:04',1,'Thủ Đức, Hồ Chí Minh',23750,1250,23750,'COMPLETED',83,1,NULL,NULL,2,1,23),(82,'BI64028374','staff','2021-12-24 01:49:54','staff','2021-12-24 02:13:23',1,'Thủ Đức, Hồ Chí Minh',33250,1750,33250,'COMPLETED',83,1,NULL,NULL,2,1,33),(83,'BI64028376','staff','2021-12-24 02:01:53','staff','2021-12-24 02:03:28',1,'Thủ Đức, Hồ Chí Minh',28500,1500,28500,'COMPLETED',83,1,NULL,NULL,2,1,28),(84,'BI64028660','staff','2021-12-24 02:13:26','staff','2021-12-24 02:15:27',1,'Thủ Đức, Hồ Chí Minh',25650,1350,25650,'COMPLETED',83,1,NULL,NULL,2,1,25),(85,'BI64028661','staff','2021-12-24 02:15:25','staff','2021-12-24 02:15:28',1,'Thủ Đức, Hồ Chí Minh',42750,2250,42750,'COMPLETED',83,1,NULL,NULL,2,1,42),(86,'BI64028705','staff','2021-12-24 02:23:55','staff','2021-12-24 02:31:50',1,'Thủ Đức, Hồ Chí Minh',25000,0,25000,'COMPLETED',83,1,NULL,NULL,2,1,25),(87,'BI64028704','staff','2021-12-24 02:32:45','staff','2021-12-24 02:39:16',1,'Thủ Đức, Hồ Chí Minh',32000,0,32000,'COMPLETED',83,1,NULL,NULL,2,1,32),(88,'BI64028921','staff','2021-12-24 02:55:09','staff','2021-12-24 03:10:04',1,'Thủ Đức, Hồ Chí Minh',16150,850,16150,'COMPLETED',83,1,NULL,NULL,2,1,16),(89,'BI64028920','staff','2021-12-24 03:10:32','staff','2021-12-24 10:19:24',1,'Thủ Đức, Hồ Chí Minh',22800,1200,22800,'COMPLETED',83,1,NULL,NULL,2,1,22),(90,'BI64032769','staff','2021-12-24 14:01:25','staff','2021-12-24 14:51:36',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'COMPLETED',83,1,NULL,NULL,2,1,20),(91,'BI64032757','staff','2021-12-24 14:02:41','staff','2021-12-24 14:53:44',1,'Thủ Đức, Hồ Chí Minh',53550,9450,53550,'COMPLETED',83,1,NULL,NULL,2,1,53),(92,'BI64032753','staff','2021-12-24 14:06:24','staff','2021-12-24 14:56:36',1,'Thủ Đức, Hồ Chí Minh',53550,9450,53550,'COMPLETED',83,1,NULL,NULL,2,1,53),(93,'BI64032750','staff','2021-12-24 14:10:27','staff','2021-12-24 14:59:43',1,'Thủ Đức, Hồ Chí Minh',53550,9450,53550,'COMPLETED',83,1,NULL,NULL,2,1,53),(94,'BI64032429','staff','2021-12-24 14:15:19','staff','2021-12-24 15:20:57',1,'Thủ Đức, Hồ Chí Minh',14450,2550,14450,'COMPLETED',83,1,NULL,NULL,2,1,14),(95,'BI64032402','staff','2021-12-24 14:23:12','staff','2021-12-24 14:40:45',1,'Thủ Đức, Hồ Chí Minh',20400,3600,20400,'COMPLETED',83,1,NULL,NULL,2,1,20),(96,'BI64033465','staff','2021-12-24 15:31:24','staff','2021-12-24 15:47:03',1,'Thủ Đức, Hồ Chí Minh',32000,0,32000,'COMPLETED',83,1,NULL,NULL,2,1,32),(97,'BI64033607','staff','2021-12-24 15:54:57','staff','2021-12-24 16:16:50',1,'Thủ Đức, Hồ Chí Minh',32000,0,32000,'COMPLETED',83,1,NULL,NULL,2,1,32),(98,'BI64034835','staff','2021-12-24 19:20:17','staff','2021-12-25 07:23:05',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'COMPLETED',83,1,NULL,NULL,2,1,20),(99,'BI64036143','staff','2021-12-24 22:57:18','staff','2021-12-24 22:57:41',1,'',100938,17812,118750,'COMPLETED',1,1,1,NULL,2,1,101),(100,'BI64039161','staff','2021-12-25 07:23:15','staff','2021-12-25 07:26:13',1,'Thủ Đức, Hồ Chí Minh',20900,1100,20900,'COMPLETED',84,1,NULL,NULL,2,1,20),(101,'BI64039175','staff','2021-12-25 07:24:22','staff','2021-12-25 07:25:50',1,'Thủ Đức, Hồ Chí Minh',35150,1850,35150,'COMPLETED',84,1,NULL,NULL,2,1,35),(102,'BI64039248','staff','2021-12-25 07:35:18','staff','2021-12-25 07:35:35',1,'Thủ Đức, Hồ Chí Minh',97920,30080,115200,'COMPLETED',84,1,1,NULL,2,1,97),(103,'BI64039321','staff','2021-12-25 08:22:32','staff','2021-12-28 23:52:25',1,'Thủ Đức, Hồ Chí Minh',51300,2700,51300,'COMPLETED',84,1,NULL,NULL,2,1,51),(104,'BI64070996','staff','2021-12-28 23:46:20','staff','2021-12-28 23:51:17',1,'Thủ Đức, Hồ Chí Minh',32000,0,32000,'COMPLETED',83,1,NULL,NULL,2,1,32),(105,'BI64071037','staff','2021-12-28 23:53:45','staff','2021-12-29 00:11:10',1,'Thủ Đức, Hồ Chí Minh',22800,1200,22800,'COMPLETED',83,1,NULL,NULL,2,1,22),(106,'BI64071063','staff','2021-12-28 23:57:40','staff','2021-12-29 00:16:39',1,'Thủ Đức, Hồ Chí Minh',30400,1600,30400,'COMPLETED',83,1,NULL,NULL,2,1,30),(107,'BI64071200','staff','2021-12-29 00:20:37','staff','2021-12-29 15:12:08',1,'Thủ Đức, Hồ Chí Minh',30400,1600,30400,'COMPLETED',83,1,NULL,NULL,2,1,30),(108,'BI64076471','staff','2021-12-29 15:34:27','staff','2021-12-29 18:31:52',1,'Thủ Đức, Hồ Chí Minh',30400,1600,30400,'COMPLETED',83,1,NULL,NULL,2,1,30),(109,'BI64163436','staff','2022-01-08 16:34:30','staff','2022-01-08 16:36:05',1,'Thủ Đức, Hồ Chí Minh',35150,1850,35150,'COMPLETED',86,1,NULL,NULL,2,1,35),(110,'BI64163477','staff','2022-01-08 16:39:32','staff','2022-01-08 16:39:59',1,'',79687.5,14062,93750,'COMPLETED',86,1,1,NULL,2,1,80),(111,'BI64164192','staff','2022-01-08 18:44:05','staff','2022-01-08 18:44:39',1,'Thủ Đức, Hồ Chí Minh',35150,1850,35150,'COMPLETED',86,1,NULL,NULL,2,1,35),(112,'BI64164213','staff','2022-01-08 18:44:18','staff','2022-01-08 18:44:47',1,'2/5 duong 68 TpHCM',30400,1600,30400,'COMPLETED',86,1,NULL,NULL,2,1,30),(113,'BI64164252','mint','2022-01-08 18:48:41','mint','2022-01-08 18:48:49',1,'',28500,0,28500,'COMPLETED',86,1,NULL,NULL,68,2,29),(114,'BI64164260','mint','2022-01-08 18:50:03','mint','2022-01-08 18:50:11',1,'',65750,0,65750,'COMPLETED',53,1,NULL,NULL,68,2,66),(115,'BI64165020','mint','2022-01-08 20:58:01','mint','2022-01-08 20:58:52',1,'2/5 duong 68 tp HCM',84532.5,24467,99450,'COMPLETED',88,1,1,NULL,68,1,84),(116,'BI64165051','mint','2022-01-08 21:01:51','mint','2022-05-24 21:10:32',1,'',70700,0,70700,'COMPLETED',88,1,NULL,NULL,68,2,71),(117,'BI64172634','staff','2022-01-09 18:05:49','staff','2022-01-09 18:07:29',1,'',42750,0,42750,'COMPLETED',1,1,NULL,NULL,2,1,43),(118,'BI64172647','staff','2022-01-09 18:08:00','staff','2022-01-10 07:41:33',1,'',32500,0,32500,'COMPLETED',1,1,NULL,NULL,2,1,33),(119,'BI64177526','staff','2022-01-10 07:41:05','staff','2022-01-10 07:41:48',1,'',13500,0,13500,'COMPLETED',1,1,NULL,NULL,2,1,14),(120,'BI64172586','staff','2022-01-10 07:41:21','staff','2022-01-10 07:41:21',1,'Thủ Đức, Hồ Chí Minh',70050,8950,75050,'CANCELED',86,1,NULL,1,2,1,70),(121,'BI64172615','staff','2022-01-10 07:41:23','staff','2022-01-10 07:41:23',1,'Thủ Đức, Hồ Chí Minh',46800,5200,46800,'CANCELED',86,1,NULL,NULL,2,1,46),(122,'BI64177066','staff','2022-01-10 07:41:51','staff','2022-01-10 07:41:51',1,'Thủ Đức, Hồ Chí Minh',159150,7850,159150,'CANCELED',86,1,NULL,NULL,2,1,159),(123,'BI64177155','staff','2022-01-10 07:41:52','staff','2022-01-10 07:41:52',1,'Thủ Đức, Hồ Chí Minh',19800,2200,19800,'CANCELED',86,1,NULL,NULL,2,1,19),(124,'BI64177994','staff','2022-01-10 09:37:17','staff','2022-01-10 09:37:21',1,'Thủ Đức, Hồ Chí Minh',30400,1600,30400,'COMPLETED',86,1,NULL,NULL,2,1,30),(125,'BI64179296','staff','2022-01-10 12:36:07','staff','2022-01-10 12:36:07',1,'',19000,0,19000,'PAID',1,1,NULL,NULL,2,1,19),(126,'BI64179296','staff','2022-01-10 12:36:08','staff','2022-01-10 12:36:08',1,'',19000,0,19000,'PAID',1,1,NULL,NULL,2,1,19),(127,'BI64250068','staff','2022-01-18 17:12:31','staff','2022-01-18 17:12:31',1,'Thủ Đức, Hồ Chí Minh',91800,28200,108000,'APPROVED',86,1,1,NULL,2,1,91),(128,'BI64250089','staff','2022-01-18 17:14:59','staff','2022-01-18 17:15:10',1,'',92650,16350,109000,'COMPLETED',88,1,1,NULL,2,1,93),(129,'BI65119903','mint','2022-04-29 09:23:55','mint','2022-04-29 09:24:04',1,'',90250,0,90250,'COMPLETED',53,1,NULL,NULL,68,2,90),(130,'BI65120174','mint','2022-04-29 10:09:02','mint','2022-04-29 10:10:59',1,'',98505,10945,109450,'COMPLETED',1,1,6,NULL,68,2,99),(131,'BI65340141','mint','2022-05-24 21:10:15','mint','2022-05-24 21:10:45',1,'',38000,0,38000,'COMPLETED',88,1,NULL,NULL,68,2,38);
/*!40000 ALTER TABLE `bill` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bill_detail`
--
DROP TABLE IF EXISTS `bill_detail`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bill_detail` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`amount` float NOT NULL,
`description` varchar(255) DEFAULT NULL,
`discount` int NOT NULL,
`price` float NOT NULL,
`quantity` int NOT NULL,
`bill_id` bigint DEFAULT NULL,
`product_id` bigint DEFAULT NULL,
`size` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKeolgwyayei3o80bb7rj7t207q` (`bill_id`),
KEY `FKe7fmo7042u349ftue4g4oeiuy` (`product_id`),
CONSTRAINT `FKe7fmo7042u349ftue4g4oeiuy` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`),
CONSTRAINT `FKeolgwyayei3o80bb7rj7t207q` FOREIGN KEY (`bill_id`) REFERENCES `bill` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=212 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bill_detail`
--
LOCK TABLES `bill_detail` WRITE;
/*!40000 ALTER TABLE `bill_detail` DISABLE KEYS */;
INSERT INTO `bill_detail` VALUES (68,'BI63966689D1','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:20',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,50,1,'L'),(69,'BI63966689D2','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:20',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,50,1,'M'),(70,'BI63966689D3','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:20',1,14250,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,15000,1,50,1,'S'),(71,'BI63966689D4','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:20',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,50,2,'L'),(72,'BI63966689D7','staff','2021-12-16 22:22:20','staff','2021-12-16 22:22:20',1,28800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,32000,1,50,10,'L'),(73,'BI63966686D1','staff','2021-12-16 22:22:21','staff','2021-12-16 22:22:21',1,57600,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,32000,2,51,11,'L'),(74,'BI63966686D7','staff','2021-12-16 22:22:21','staff','2021-12-16 22:22:21',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,51,6,'L'),(75,'BI63966686D9','staff','2021-12-16 22:22:21','staff','2021-12-16 22:22:21',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,51,7,'L'),(76,'BI63966690D1','staff','2021-12-16 22:22:31','staff','2021-12-16 22:22:31',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,52,2,'M'),(77,'BI63966690D2','staff','2021-12-16 22:22:31','staff','2021-12-16 22:22:31',1,33250,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,35000,1,52,6,'M'),(78,'BI63966975D1','staff','2021-12-16 23:46:00','staff','2021-12-16 23:46:00',1,51300,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,2,53,2,'L'),(79,'BI63966975D2','staff','2021-12-16 23:46:00','staff','2021-12-16 23:46:00',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,53,3,'L'),(80,'BI63967254D1','staff','2021-12-16 23:46:01','staff','2021-12-16 23:46:01',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,54,4,'L'),(81,'BI63967254D2','staff','2021-12-16 23:46:01','staff','2021-12-16 23:46:01',1,22800,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,24000,1,54,9,'L'),(82,'BI63967265D1','staff','2021-12-16 23:46:04','staff','2021-12-16 23:46:04',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,55,2,'L'),(83,'BI63967265D2','staff','2021-12-16 23:46:04','staff','2021-12-16 23:46:04',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,55,12,'L'),(84,'BI63967324D1','staff','2021-12-20 01:28:23','staff','2021-12-20 01:28:23',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,56,2,'L'),(85,'BI63967324D2','staff','2021-12-20 01:28:23','staff','2021-12-20 01:28:23',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,56,2,'M'),(86,'BI63967324D3','staff','2021-12-20 01:28:23','staff','2021-12-20 01:28:23',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,56,2,'S'),(87,'BI63967324D4','staff','2021-12-20 01:28:23','staff','2021-12-20 01:28:23',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,56,3,'L'),(88,'BI63967324D5','staff','2021-12-20 01:28:23','staff','2021-12-20 01:28:23',1,28500,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,30000,1,56,3,'M'),(89,'BI64016678D1','staff','2021-12-22 17:06:40','staff','2021-12-22 17:06:40',1,51300,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,2,57,2,'L'),(90,'BI64016679D1','staff','2021-12-22 17:06:41','staff','2021-12-22 17:06:41',1,51300,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,2,58,2,'L'),(91,'BI64016679D2','staff','2021-12-22 17:06:41','staff','2021-12-22 17:06:41',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,58,13,'L'),(92,'BI64016679D3','staff','2021-12-22 17:06:41','staff','2021-12-22 17:06:41',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,58,12,'L'),(93,'BI64016684D1','staff','2021-12-22 17:06:42','staff','2021-12-22 17:06:42',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,59,1,'L'),(94,'BI64016692D1','staff','2021-12-22 17:06:45','staff','2021-12-22 17:06:45',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,60,1,'M'),(95,'BI64016692D4','staff','2021-12-22 17:06:45','staff','2021-12-22 17:06:45',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,60,2,'L'),(96,'BI64016592D1','staff','2021-12-22 17:06:50','staff','2021-12-22 17:06:50',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,61,1,'L'),(97,'BI64016592D4','staff','2021-12-22 17:06:50','staff','2021-12-22 17:06:50',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,61,6,'L'),(98,'BI64016597D1','staff','2021-12-22 17:06:51','staff','2021-12-22 17:06:51',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,62,2,'L'),(99,'BI64016666D1','staff','2021-12-22 17:06:52','staff','2021-12-22 17:06:52',1,70300,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,2,63,6,'L'),(100,'BI64016687D1','staff','2021-12-22 17:06:59','staff','2021-12-22 17:06:59',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,64,1,'L'),(101,'BI64016694D1','staff','2021-12-22 17:07:02','staff','2021-12-22 17:07:02',1,14250,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,15000,1,65,1,'S'),(102,'BI64016702D3','staff','2021-12-22 17:07:03','staff','2021-12-22 17:07:03',1,33250,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,35000,1,66,6,'M'),(103,'BI64016703D1','staff','2021-12-22 17:13:26','staff','2021-12-22 17:13:26',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,67,1,'L'),(104,'BI64016713D2','staff','2021-12-22 17:13:26','staff','2021-12-22 17:13:26',1,28500,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,30000,1,68,6,'S'),(105,'BI64016713D4','staff','2021-12-22 17:13:26','staff','2021-12-22 17:13:26',1,28500,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,30000,1,68,13,'M'),(106,'BI64016720D1','staff','2021-12-22 17:13:27','staff','2021-12-22 17:13:27',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,69,6,'L'),(107,'BI64016720D2','staff','2021-12-22 17:13:27','staff','2021-12-22 17:13:27',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,69,13,'L'),(108,'BI64016764D1','staff','2021-12-22 17:13:28','staff','2021-12-22 17:13:28',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,70,2,'L'),(109,'BI64016764D4','staff','2021-12-22 17:13:28','staff','2021-12-22 17:13:28',1,28800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,32000,1,70,11,'L'),(110,'BI64016773D1','staff','2021-12-22 17:13:29','staff','2021-12-22 17:13:29',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,71,7,'L'),(111,'BI64018220D1','staff','2021-12-22 21:22:57','staff','2021-12-22 21:22:57',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,72,2,'M'),(112,'BI64018219D1','staff','2021-12-22 21:26:27','staff','2021-12-22 21:26:27',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,73,2,'L'),(113,'BI64018219D3','staff','2021-12-22 21:26:27','staff','2021-12-22 21:26:27',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,73,2,'S'),(114,'BI64018219D5','staff','2021-12-22 21:26:27','staff','2021-12-22 21:26:27',1,28500,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,30000,1,73,3,'M'),(115,'BI64016853D1','staff','2021-12-22 23:35:00','staff','2021-12-22 23:35:00',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,74,2,'L'),(116,'BI64016853D2','staff','2021-12-22 23:35:00','staff','2021-12-22 23:35:00',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,74,6,'L'),(117,'BI64016853D3','staff','2021-12-22 23:35:00','staff','2021-12-22 23:35:00',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,74,7,'L'),(118,'BI64016853D4','staff','2021-12-22 23:35:00','staff','2021-12-22 23:35:00',1,18700,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,22000,1,74,7,'M'),(119,'BI64016839D1','staff','2021-12-22 23:36:57','staff','2021-12-22 23:36:57',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,75,2,'L'),(120,'BI64016839D2','staff','2021-12-22 23:36:57','staff','2021-12-22 23:36:57',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,75,6,'L'),(121,'BI64016852D1','staff','2021-12-23 13:24:23','staff','2021-12-23 13:24:23',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,76,2,'L'),(122,'BI64016852D2','staff','2021-12-23 13:24:23','staff','2021-12-23 13:24:23',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,76,6,'L'),(123,'BI64016797D1','staff','2021-12-23 20:30:47','staff','2021-12-23 20:30:47',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,77,13,'L'),(124,'BI64016797D2','staff','2021-12-23 20:30:47','staff','2021-12-23 20:30:47',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,77,2,'L'),(125,'BI64016797D3','staff','2021-12-23 20:30:47','staff','2021-12-23 20:30:47',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,77,2,'M'),(126,'BI64016777D3','staff','2021-12-23 20:42:19','staff','2021-12-23 20:42:19',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,78,2,'M'),(127,'BI64016777D4','staff','2021-12-23 20:42:19','staff','2021-12-23 20:42:19',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,78,2,'S'),(128,'BI64027357D1','staff','2021-12-23 22:33:18','staff','2021-12-23 22:33:18',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,79,3,'L'),(129,'BI64027357D3','staff','2021-12-23 22:33:18','staff','2021-12-23 22:33:18',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,79,1,'L'),(130,'BI64027474D1','staff','2021-12-23 22:53:45','staff','2021-12-23 22:53:45',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,80,3,'S'),(131,'BI64027476D1','staff','2021-12-24 00:13:04','staff','2021-12-24 00:13:04',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,81,3,'S'),(132,'BI64028374D1','staff','2021-12-24 01:49:55','staff','2021-12-24 01:49:55',1,33250,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,35000,1,82,6,'M'),(133,'BI64028376D1','staff','2021-12-24 02:01:53','staff','2021-12-24 02:01:53',1,28500,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,30000,1,83,6,'S'),(134,'BI64028660D1','staff','2021-12-24 02:13:26','staff','2021-12-24 02:13:26',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,84,2,'L'),(135,'BI64028661D1','staff','2021-12-24 02:15:25','staff','2021-12-24 02:15:25',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,85,2,'M'),(136,'BI64028661D2','staff','2021-12-24 02:15:25','staff','2021-12-24 02:15:25',1,19000,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,20000,1,85,2,'S'),(137,'BI64028705D1','staff','2021-12-24 02:23:56','staff','2021-12-24 02:23:56',1,25000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,25000,1,86,12,'S'),(138,'BI64028704D1','staff','2021-12-24 02:32:45','staff','2021-12-24 02:32:45',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,87,12,'L'),(139,'BI64028921D1','staff','2021-12-24 02:55:09','staff','2021-12-24 02:55:09',1,16150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,17000,1,88,9,'S'),(140,'BI64028920D1','staff','2021-12-24 03:10:32','staff','2021-12-24 03:10:32',1,22800,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,24000,1,89,9,'L'),(141,'BI64032769D1','staff','2021-12-24 14:01:25','staff','2021-12-24 14:01:25',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,90,1,'L'),(142,'BI64032757D1','staff','2021-12-24 14:02:41','staff','2021-12-24 14:02:41',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,91,7,'L'),(143,'BI64032757D2','staff','2021-12-24 14:02:41','staff','2021-12-24 14:02:41',1,18700,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,22000,1,91,7,'M'),(144,'BI64032757D3','staff','2021-12-24 14:02:41','staff','2021-12-24 14:02:41',1,14450,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,17000,1,91,7,'S'),(145,'BI64032753D1','staff','2021-12-24 14:06:24','staff','2021-12-24 14:06:24',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,92,7,'L'),(146,'BI64032753D2','staff','2021-12-24 14:06:24','staff','2021-12-24 14:06:24',1,18700,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,22000,1,92,7,'M'),(147,'BI64032753D3','staff','2021-12-24 14:06:24','staff','2021-12-24 14:06:24',1,14450,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,17000,1,92,7,'S'),(148,'BI64032750D1','staff','2021-12-24 14:10:27','staff','2021-12-24 14:10:27',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,93,7,'L'),(149,'BI64032750D2','staff','2021-12-24 14:10:27','staff','2021-12-24 14:10:27',1,18700,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,22000,1,93,7,'M'),(150,'BI64032750D3','staff','2021-12-24 14:10:27','staff','2021-12-24 14:10:27',1,14450,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,17000,1,93,7,'S'),(151,'BI64032429D3','staff','2021-12-24 14:15:19','staff','2021-12-24 14:15:19',1,14450,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,17000,1,94,7,'S'),(152,'BI64032402D1','staff','2021-12-24 14:23:12','staff','2021-12-24 14:23:12',1,20400,'Sữa: Almond Milk, đường: 50%, đá: 50%',15,24000,1,95,7,'L'),(153,'BI64033465D1','staff','2021-12-24 15:31:24','staff','2021-12-24 15:31:24',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,96,4,'L'),(154,'BI64033607D1','staff','2021-12-24 15:54:57','staff','2021-12-24 15:54:57',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,97,12,'L'),(155,'BI64034835D1','staff','2021-12-24 19:20:17','staff','2021-12-24 19:20:17',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,98,1,'L'),(156,'BI64036143D1','staff','2021-12-24 22:57:18','staff','2021-12-24 22:57:18',1,95000,'',5,25000,4,99,2,'M'),(157,'BI64036143D2','staff','2021-12-24 22:57:18','staff','2021-12-24 22:57:18',1,23750,'',5,25000,1,99,3,'S'),(158,'BI64039161D1','staff','2021-12-25 07:23:15','staff','2021-12-25 07:23:15',1,20900,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,22000,1,100,1,'L'),(159,'BI64039175D1','staff','2021-12-25 07:24:22','staff','2021-12-25 07:24:22',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,101,5,'L'),(160,'BI64039248D1','staff','2021-12-25 07:35:19','staff','2021-12-25 07:35:19',1,115200,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,32000,4,102,10,'L'),(161,'BI64039321D1','staff','2021-12-25 08:22:32','staff','2021-12-25 08:22:32',1,51300,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,2,103,2,'L'),(162,'BI64070996D1','staff','2021-12-28 23:46:20','staff','2021-12-28 23:46:20',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,104,4,'L'),(163,'BI64071037D1','staff','2021-12-28 23:53:45','staff','2021-12-28 23:53:45',1,22800,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,24000,1,105,9,'L'),(164,'BI64071063D1','staff','2021-12-28 23:57:40','staff','2021-12-28 23:57:40',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,106,14,'L'),(165,'BI64071200D1','staff','2021-12-29 00:20:37','staff','2021-12-29 00:20:37',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,107,14,'L'),(166,'BI64076471D1','staff','2021-12-29 15:34:28','staff','2021-12-29 15:34:28',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,108,13,'L'),(167,'BI64163436D1','staff','2022-01-08 16:34:31','staff','2022-01-08 16:34:31',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,109,6,'L'),(168,'BI64163477D1','staff','2022-01-08 16:39:32','staff','2022-01-08 16:39:32',1,38000,'',5,20000,2,110,1,'M'),(169,'BI64163477D2','staff','2022-01-08 16:39:32','staff','2022-01-08 16:39:32',1,32000,'',0,32000,1,110,12,'L'),(170,'BI64163477D3','staff','2022-01-08 16:39:32','staff','2022-01-08 16:39:32',1,23750,'',5,25000,1,110,3,'S'),(171,'BI64164192D1','staff','2022-01-08 18:44:06','staff','2022-01-08 18:44:06',1,35150,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,37000,1,111,5,'L'),(172,'BI64164213D1','staff','2022-01-08 18:44:18','staff','2022-01-08 18:44:18',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,112,3,'L'),(173,'BI64164252D1','mint','2022-01-08 18:48:41','mint','2022-01-08 18:48:41',1,28500,'',5,30000,1,113,6,'S'),(174,'BI64164260D1','mint','2022-01-08 18:50:03','mint','2022-01-08 18:50:03',1,28500,'',5,30000,1,114,6,'S'),(175,'BI64164260D2','mint','2022-01-08 18:50:03','mint','2022-01-08 18:50:03',1,23750,'',5,25000,1,114,3,'S'),(176,'BI64164260D3','mint','2022-01-08 18:50:03','mint','2022-01-08 18:50:03',1,13500,'',10,15000,1,114,1,'S'),(177,'BI64165020D1','mint','2022-01-08 20:58:01','mint','2022-01-08 20:58:01',1,54000,'Sữa: Almond Milk, đường: 75%, đá: 75%',10,30000,2,115,10,'M'),(178,'BI64165020D2','mint','2022-01-08 20:58:01','mint','2022-01-08 20:58:01',1,19800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,22000,1,115,1,'L'),(179,'BI64165020D3','mint','2022-01-08 20:58:01','mint','2022-01-08 20:58:01',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,115,2,'L'),(180,'BI64165051D1','mint','2022-01-08 21:01:51','mint','2022-01-08 21:01:51',1,27000,'',10,15000,2,116,1,'S'),(181,'BI64165051D2','mint','2022-01-08 21:01:51','mint','2022-01-08 21:01:51',1,18700,'',15,22000,1,116,7,'M'),(182,'BI64165051D3','mint','2022-01-08 21:01:51','mint','2022-01-08 21:01:51',1,25000,'',0,25000,1,116,4,'S'),(183,'BI64172634D1','staff','2022-01-09 18:05:49','staff','2022-01-09 18:05:49',1,19000,'',5,20000,1,117,2,'S'),(184,'BI64172634D2','staff','2022-01-09 18:05:49','staff','2022-01-09 18:05:49',1,23750,'',5,25000,1,117,3,'S'),(185,'BI64172647D1','staff','2022-01-09 18:08:00','staff','2022-01-09 18:08:00',1,13500,'',10,15000,1,118,1,'S'),(186,'BI64172647D2','staff','2022-01-09 18:08:00','staff','2022-01-09 18:08:00',1,19000,'',5,20000,1,118,2,'S'),(187,'BI64177526D1','staff','2022-01-10 07:41:05','staff','2022-01-10 07:41:05',1,13500,'',10,15000,1,119,1,'S'),(188,'BI64172586D1','staff','2022-01-10 07:41:21','staff','2022-01-10 07:41:21',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,120,2,'L'),(189,'BI64172586D2','staff','2022-01-10 07:41:21','staff','2022-01-10 07:41:21',1,25650,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,1,120,2,'L'),(190,'BI64172586D3','staff','2022-01-10 07:41:21','staff','2022-01-10 07:41:21',1,23750,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,25000,1,120,3,'S'),(191,'BI64172615D2','staff','2022-01-10 07:41:23','staff','2022-01-10 07:41:23',1,18000,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,20000,1,121,1,'M'),(192,'BI64172615D3','staff','2022-01-10 07:41:23','staff','2022-01-10 07:41:23',1,28800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,32000,1,121,11,'L'),(193,'BI64177066D1','staff','2022-01-10 07:41:51','staff','2022-01-10 07:41:51',1,19800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,22000,1,122,1,'L'),(194,'BI64177066D2','staff','2022-01-10 07:41:51','staff','2022-01-10 07:41:51',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,122,3,'L'),(195,'BI64177066D3','staff','2022-01-10 07:41:51','staff','2022-01-10 07:41:51',1,32000,'Sữa: Almond Milk, đường: 50%, đá: 50%',0,32000,1,122,4,'L'),(196,'BI64177066D4','staff','2022-01-10 07:41:51','staff','2022-01-10 07:41:51',1,76950,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,27000,3,122,2,'L'),(197,'BI64177155D1','staff','2022-01-10 07:41:52','staff','2022-01-10 07:41:52',1,19800,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,22000,1,123,1,'L'),(198,'BI64177994D1','staff','2022-01-10 09:37:17','staff','2022-01-10 09:37:17',1,30400,'Sữa: Almond Milk, đường: 50%, đá: 50%',5,32000,1,124,3,'L'),(199,'BI64179296D1','staff','2022-01-10 12:36:08','staff','2022-01-10 12:36:08',1,19000,'',5,20000,1,125,2,'S'),(200,'BI64179296D1','staff','2022-01-10 12:36:08','staff','2022-01-10 12:36:08',1,19000,'',5,20000,1,126,2,'S'),(201,'BI64250068D1','staff','2022-01-18 17:12:31','staff','2022-01-18 17:12:31',1,18000,'Sữa: Almond Milk, đường: 75%, đá: 50%',10,20000,1,127,1,'M'),(202,'BI64250068D2','staff','2022-01-18 17:12:31','staff','2022-01-18 17:12:31',1,90000,'Sữa: Almond Milk, đường: 50%, đá: 50%',10,20000,5,127,1,'M'),(203,'BI64250089D1','staff','2022-01-18 17:14:59','staff','2022-01-18 17:14:59',1,90000,'',10,20000,5,128,1,'M'),(204,'BI64250089D2','staff','2022-01-18 17:14:59','staff','2022-01-18 17:14:59',1,19000,'',5,20000,1,128,2,'S'),(205,'BI65119903D1','mint','2022-04-29 09:23:56','mint','2022-04-29 09:23:56',1,19000,'',5,20000,1,129,2,'S'),(206,'BI65119903D2','mint','2022-04-29 09:23:56','mint','2022-04-29 09:23:56',1,71250,'',5,25000,3,129,3,'S'),(207,'BI65120174D1','mint','2022-04-29 10:09:02','mint','2022-04-29 10:09:02',1,71250,'',5,25000,3,130,2,'M'),(208,'BI65120174D2','mint','2022-04-29 10:09:02','mint','2022-04-29 10:09:02',1,23750,'',5,25000,1,130,16,'M'),(209,'BI65120174D3','mint','2022-04-29 10:09:02','mint','2022-04-29 10:09:02',1,14450,'',15,17000,1,130,7,'S'),(210,'BI65340141D1','mint','2022-05-24 21:10:15','mint','2022-05-24 21:10:15',1,19000,'',5,20000,1,131,2,'S'),(211,'BI65340141D2','mint','2022-05-24 21:10:15','mint','2022-05-24 21:10:15',1,19000,'',5,20000,1,131,16,'S');
/*!40000 ALTER TABLE `bill_detail` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cart`
--
DROP TABLE IF EXISTS `cart`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cart` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`description` varchar(255) DEFAULT NULL,
`quantity` int NOT NULL,
`customer_id` bigint DEFAULT NULL,
`product_id` bigint DEFAULT NULL,
`store_id` bigint DEFAULT NULL,
`size` varchar(255) DEFAULT NULL,
`ice` int NOT NULL,
`milk` varchar(255) NOT NULL,
`sugar` int NOT NULL,
PRIMARY KEY (`id`),
KEY `FK9mocisyryuqas1xrlbl8872lb` (`customer_id`),
KEY `FK3d704slv66tw6x5hmbm6p2x3u` (`product_id`),
KEY `FKd1x6ip1voqx475p471usgde93` (`store_id`),
CONSTRAINT `FK3d704slv66tw6x5hmbm6p2x3u` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`),
CONSTRAINT `FK9mocisyryuqas1xrlbl8872lb` FOREIGN KEY (`customer_id`) REFERENCES `user` (`id`),
CONSTRAINT `FKd1x6ip1voqx475p471usgde93` FOREIGN KEY (`store_id`) REFERENCES `store` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=333 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cart`
--
LOCK TABLES `cart` WRITE;
/*!40000 ALTER TABLE `cart` DISABLE KEYS */;
INSERT INTO `cart` VALUES (327,'CART1653952760','0346279377','2022-05-31 06:19:21','0346279377','2022-06-01 06:14:38',1,'Sữa: Sữa ngôi sao, Đường: 50%, Đá: 50%',4,88,2,1,'L',50,'Sữa ngôi sao',50),(328,'CART1653964466','0346279377','2022-05-31 09:34:28','0346279377','2022-06-01 06:14:37',1,'Sữa: Sữa ngôi sao, Đường: 50%, Đá: 50%',1,88,7,1,'L',50,'Sữa ngôi sao',50);
/*!40000 ALTER TABLE `cart` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `category`
--
DROP TABLE IF EXISTS `category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `category` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`name` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_46ccwnsi9409t36lurvtyljak` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `category`
--
LOCK TABLES `category` WRITE;
/*!40000 ALTER TABLE `category` DISABLE KEYS */;
INSERT INTO `category` VALUES (1,'COFFEE','anonymousUser','2021-11-14 14:38:32','admin','2022-01-18 17:19:30',1,'Cà phê'),(2,'MILKTEA','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'Trà sữa'),(3,'JUICE','anonymousUser','2021-11-14 14:38:32','admin','2022-01-10 07:40:12',1,'Nước ép');
/*!40000 ALTER TABLE `category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `category_product`
--
DROP TABLE IF EXISTS `category_product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `category_product` (
`category_id` bigint NOT NULL,
`product_id` bigint NOT NULL,
KEY `FKssroqj2vyiaujfleklq1ifigj` (`product_id`),
KEY `FKfr6rjc04htbtc3xas2b9xmq7r` (`category_id`),
CONSTRAINT `FKfr6rjc04htbtc3xas2b9xmq7r` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`),
CONSTRAINT `FKssroqj2vyiaujfleklq1ifigj` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `category_product`
--
LOCK TABLES `category_product` WRITE;
/*!40000 ALTER TABLE `category_product` DISABLE KEYS */;
INSERT INTO `category_product` VALUES (2,5),(2,6),(2,14),(2,8),(2,7),(3,10),(3,13),(3,11),(3,12),(1,3),(1,9),(1,2),(1,4),(1,15),(1,16),(1,1);
/*!40000 ALTER TABLE `category_product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `payment`
--
DROP TABLE IF EXISTS `payment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `payment` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `payment`
--
LOCK TABLES `payment` WRITE;
/*!40000 ALTER TABLE `payment` DISABLE KEYS */;
INSERT INTO `payment` VALUES (1,'CASH','anonymousUser','2021-11-14 14:38:33','anonymousUser','2021-11-14 14:38:33',1,'Tiền mặt'),(2,'CREDIT_CARD','anonymousUser','2021-11-14 14:38:33','anonymousUser','2021-11-14 14:38:33',1,'Thẻ tín dụng');
/*!40000 ALTER TABLE `payment` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `product`
--
DROP TABLE IF EXISTS `product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `product` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`description` varchar(255) DEFAULT NULL,
`discount` int NOT NULL,
`image` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`milk` bit(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product`
--
LOCK TABLES `product` WRITE;
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
INSERT INTO `product` VALUES (1,'COFFEE_CUP','admin','2021-11-14 18:37:35','admin','2022-01-18 17:17:28',1,'Cà phê chất lượng đến từ vùng đất cà phê đỉnh chóp của Việt Nam. Hương vị mê ly, động lòng người uống. Ngon lắm!!',10,'https://res.cloudinary.com/tranan2509/image/upload/v1637471428/knm8qhneddobu7n26orr.png','Cà phê đen',_binary '\0'),(2,'MACHIATO','admin','2021-11-14 23:16:47','admin','2022-01-10 07:39:10',1,'Hương vị đậm đà, cà phê mê ly',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637472019/m3qqx4qmnsfykurqcr3x.png','Machiato',_binary '\0'),(3,'LATTE','admin','2021-11-14 23:20:46','admin','2021-11-21 12:03:28',1,'Thơm ngon và mê ly',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637471006/nbwlq3yk6lop3i8e7hzr.png','Latte',_binary '\0'),(4,'CAPUCHINO','admin','2021-11-14 23:22:31','admin','2021-11-21 12:24:57',1,'Thưởng thức cà phê thơm nức mũi và ngọt ngào của sữa',0,'https://res.cloudinary.com/tranan2509/image/upload/v1637472295/duy3wne3jfx3zworgyr4.png','Capuchino',_binary '\0'),(5,'MT_MATCHA','admin','2021-11-14 23:26:15','admin','2021-11-21 09:43:26',1,'Trà sữa hòa quyện với matcha tạo nên hương vị dịu nhẹ và phảng phất mùi matcha nhẹ nhàng',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637462604/k0ojuba0l8terfbaoqdq.png','Trà sữa Matcha',_binary '\0'),(6,'MT_MINT','admin','2021-11-14 23:33:55','admin','2022-01-10 12:39:09',1,'Bạc hà the mát hòa quyện với vị trà sữa gia truyền độc đáo sẽ là lựa chọn phù hợp vào những ngày nóng bức',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637462754/a5ogroxpwthyqdmjqq8b.png','Trà sữa bạc hà',_binary '\0'),(7,'MT_BLACKTEA','admin','2021-11-14 23:45:45','admin','2021-11-21 12:49:26',1,'Tín đồ trà nên dùng thử và khám phá vị đặc biệt của nó nhé',15,'https://res.cloudinary.com/tranan2509/image/upload/v1637473764/kyn80qz5hmfan0tutznn.png','Trà đen',_binary '\0'),(8,'MT_PEACHTEA','admin','2021-11-14 23:47:00','admin','2021-11-21 11:58:26',1,'Trà đào với miếng đào thật và trà nấu từ những trái đào thơm ngon chín mộng',0,'https://res.cloudinary.com/tranan2509/image/upload/v1637470704/yvdbdcdluv5et3oa9lue.png','Trà Đào',_binary '\0'),(9,'MILKCOFFEE','admin','2021-11-14 23:48:19','admin','2021-11-21 12:04:17',1,'Cà phê sữa thơm ngon nức lòng người',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637471055/ssqf7s62lzskmro1qzjl.png','Cà phê sữa',_binary '\0'),(10,'ORAGEJUICE','admin','2021-11-14 23:50:30','admin','2021-11-21 11:59:10',1,'Vitamin C cho ngày dài năng động ',10,'https://res.cloudinary.com/tranan2509/image/upload/v1637470748/gccka8fhkcikhytqrbai.png','Nước cam ép',_binary '\0'),(11,'APPLEJUICE','admin','2021-11-14 23:51:28','admin','2021-11-21 12:55:50',1,'Nước táo ép tốt cho sức khỏe',10,'https://res.cloudinary.com/tranan2509/image/upload/v1637474149/fwsfxbegaie3bnvq6sim.png','Nước táo ép',_binary '\0'),(12,'WATER_MELON_JUICE','admin','2021-11-15 00:19:40','admin','2021-11-21 13:15:34',1,'Dưa hấu tươi ngon',0,'https://res.cloudinary.com/tranan2509/image/upload/v1637475332/ncuzidudzgrikehrg1in.png','Nước ép dưa hấu',_binary '\0'),(13,'TOMATOJUICE','admin','2021-11-15 00:20:30','admin','2021-11-21 12:52:58',1,'Cà chua tươi bổ mắt',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637473977/wqc8rsnky99m49q9xhh1.png','Nước ép cà chua',_binary '\0'),(14,'MT_SOCOLA','admin','2021-11-21 09:49:43','admin','2021-11-21 09:49:43',1,'Trà sữa socola giảm stress',5,'https://res.cloudinary.com/tranan2509/image/upload/v1637462981/fk0kmyw0oqwlxnnyvpuh.png','Trà sữa socola',_binary '\0'),(15,'COFFEE_CUP1','admin','2022-01-08 21:08:09','admin','2022-01-08 21:08:09',1,'ngon lắm, cà phê ngon',5,'https://res.cloudinary.com/tranan2509/image/upload/v1641650888/yxabdlmclqwexmxrvzs9.png','Cà phê đen đá',_binary '\0'),(16,'COFFEE_CUP2','admin','2022-01-08 23:40:38','admin','2022-01-08 23:40:38',1,'ngon lắm!!!!',5,'https://res.cloudinary.com/tranan2509/image/upload/v1641660036/hgksedhlntmwucinewpz.png','Cà phê sữa đá',_binary '\0');
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `promotion`
--
DROP TABLE IF EXISTS `promotion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `promotion` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`description` text,
`discount` int NOT NULL,
`end_date` datetime DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`object` varchar(255) DEFAULT NULL,
`proviso` int NOT NULL,
`start_date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `promotion`
--
LOCK TABLES `promotion` WRITE;
/*!40000 ALTER TABLE `promotion` DISABLE KEYS */;
INSERT INTO `promotion` VALUES (1,'KMTAKH','admin','2021-11-25 21:40:57','admin','2022-01-18 17:20:03',0,'Giảm 15% cho đơn từ 89k',15,'2022-02-10 07:00:00','','Khuyến mãi tri ân khách hàng','BRONZE',89000,'2021-11-25 07:00:00'),(2,'KMNX','admin','2021-11-25 21:42:59','admin','2021-11-25 21:43:36',1,'Giảm 20% cho đơn hàng từ 89k dành cho hội viên VÀNG trở lên',20,'2022-02-10 07:00:00','','Khuyến mãi ngày xuân','GOLD',89000,'2021-11-25 07:00:00'),(3,'KMKQ','admin','2021-11-25 21:45:16','admin','2021-11-25 21:45:16',1,'Giảm 25% cho đơn hàng từ 89k cho hội viên bậc BẠCH KIM',25,'2022-02-10 07:00:00','','Khuyến mãi khách quen','PLATINUM',89000,'2021-11-25 07:00:00'),(6,'TAKH','admin','2022-04-22 21:22:19','admin','2022-04-22 21:22:19',1,'Chỉ với đơn 89k bạn sẽ được giảm 10% nhanh tay order ngay!!! ',10,'2022-05-31 07:00:00','','Tri ân khách hàng yêu','BRONZE',89000,'2022-04-22 07:00:00'),(7,'NB','admin','2022-04-22 21:24:07','admin','2022-04-22 21:24:07',1,'Giảm 15% với đơn từ 99k vì quá nhớ bạn <3',15,'2022-07-31 07:00:00','','Nhớ khách yêu','BRONZE',99000,'2022-04-22 07:00:00'),(8,'KHTT','admin','2022-04-22 21:26:00','admin','2022-04-22 21:26:00',1,'Giảm ngay 16% chỉ với đơn hàng 120k cho thành viên bậc VÀNG trở lên',16,'2022-08-31 07:00:00','','Khuyến mãi khách hàng thân thiết','GOLD',120000,'2022-04-22 07:00:00'),(9,'KMMR','admin','2022-04-22 21:27:56','admin','2022-04-22 21:27:56',1,'Giảm ngay 20% chỉ với đơn hàng từ 150k cho mối ruột bậc BẠCH KIM <3',20,'2022-08-31 07:00:00','','Khuyến mãi mối ruột','PLATINUM',150000,'2022-04-22 07:00:00');
/*!40000 ALTER TABLE `promotion` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rate`
--
DROP TABLE IF EXISTS `rate`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `rate` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`comment` text,
`star` int NOT NULL,
`product_id` bigint DEFAULT NULL,
`user_id` bigint DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKrwqxo7w4ksxh4g3qgjdqdl4w5` (`product_id`),
KEY `FKqa3bu60wco5ipgfi8rhmxr6aq` (`user_id`),
CONSTRAINT `FKqa3bu60wco5ipgfi8rhmxr6aq` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`),
CONSTRAINT `FKrwqxo7w4ksxh4g3qgjdqdl4w5` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rate`
--
LOCK TABLES `rate` WRITE;
/*!40000 ALTER TABLE `rate` DISABLE KEYS */;
INSERT INTO `rate` VALUES (2,'RATEBI63966690D1','0975226327','2021-12-16 23:13:37','0975226327','2021-12-16 23:13:37',1,'ngon !!!!',5,2,53),(3,'RATEBI63966689D2','0975226327','2021-12-16 23:32:26','0975226327','2021-12-16 23:32:26',1,'Good¡!¡',5,1,53),(4,'RATEBI64033607D1','0346279377','2021-12-24 21:07:33','0346279377','2021-12-24 21:07:33',1,'okelaaaaaa!!!!!!!!!!!!',4,12,83),(5,'RATEBI64028376D1','0346279377','2021-12-24 21:08:48','0346279377','2021-12-24 21:08:48',1,'Tuyet voi lam!!!!',5,6,83),(6,'RATEBI64028705D1','0346279377','2021-12-24 21:16:04','0346279377','2021-12-24 21:16:04',1,'Hoan Hao!!!!',5,12,83),(7,'RATEBI64032750D1','0346279377','2021-12-24 21:16:44','0346279377','2021-12-24 21:16:44',1,'Dang qua!!!',3,7,83),(8,'RATEBI64032750D3','0346279377','2021-12-24 21:17:10','0346279377','2021-12-24 21:17:10',1,'Hop khau vi',5,7,83),(9,'RATEBI64032750D2','0346279377','2021-12-24 21:17:26','0346279377','2021-12-24 21:17:26',1,'oke lam ak',5,7,83),(10,'RATEBI64027357D3','0346279377','2021-12-24 21:17:59','0346279377','2021-12-24 21:17:59',1,'Thom ngon re!!!',5,1,83),(11,'RATEBI64016839D2','0346279377','2021-12-24 21:18:46','0346279377','2021-12-24 21:18:46',1,'ngon tuyet nen thu',5,6,83),(12,'RATEBI64016797D2','0346279377','2021-12-24 21:19:16','0346279377','2021-12-24 21:19:16',1,'Hop khau vi qua hoan hao',5,2,83),(13,'RATEBI64016852D2','0346279377','2021-12-24 21:19:36','0346279377','2021-12-24 21:19:36',1,'tuyet',5,6,83),(14,'RATEBI64018219D1','0346279377','2021-12-24 21:19:51','0346279377','2021-12-24 21:19:51',1,'okelaaaaaaaa',5,2,83),(15,'RATEBI64016692D1','0346279377','2021-12-24 21:20:11','0346279377','2021-12-24 21:20:11',1,'Ngon qua Ngon',5,1,83),(16,'RATEBI64032753D1','0346279377','2021-12-24 21:20:35','0346279377','2021-12-24 21:20:35',1,'On ap vo cung',5,7,83),(17,'RATEBI64032753D2','0346279377','2021-12-24 21:21:10','0346279377','2021-12-24 21:21:10',1,'Ngon lam',5,7,83),(18,'RATEBI64018219D5','0346279377','2021-12-24 21:21:38','0346279377','2021-12-24 21:21:38',1,'Tuyet qua',5,3,83),(19,'RATEBI64039161D1','0397830379','2021-12-25 07:26:50','0397830379','2021-12-25 07:26:50',1,'ngon qua',5,1,84),(20,'RATEBI64039248D1','0397830379','2021-12-25 08:23:22','0397830379','2021-12-25 08:23:22',1,'ngon qua',5,10,84),(21,'RATEBI64028661D1','0346279377','2021-12-28 13:17:02','0346279377','2021-12-28 13:17:02',1,'qua tuyet',5,2,83),(22,'RATEBI64028661D2','0346279377','2021-12-28 13:17:28','0346279377','2021-12-28 13:17:28',1,'ngon qua',5,2,83),(23,'RATEBI64018220D1','0346279377','2021-12-28 13:17:51','0346279377','2021-12-28 13:17:51',1,'qua ngon',5,2,83),(24,'RATEBI64028704D1','0346279377','2021-12-28 13:18:11','0346279377','2021-12-28 13:18:11',1,'tuyet',5,12,83),(25,'RATEBI64027474D1','0346279377','2021-12-28 13:18:35','0346279377','2021-12-28 13:18:35',1,'khong hop khau vi',3,3,83),(26,'RATEBI64016666D1','0346279377','2021-12-28 13:19:06','0346279377','2021-12-28 13:19:06',1,'tui uong khong quen',5,6,83),(27,'RATEBI64032769D1','0346279377','2021-12-28 13:19:35','0346279377','2021-12-28 13:19:35',1,'them ty duong nua se hop ly hon',3,1,83),(28,'RATEBI64016839D1','0346279377','2021-12-28 13:19:55','0346279377','2021-12-28 13:19:55',1,'okela lam ',4,2,83),(29,'RATEBI64016592D1','0346279377','2021-12-28 13:20:25','0346279377','2021-12-28 13:20:25',1,'ngon qua',5,1,83),(30,'RATEBI64033465D1','0346279377','2021-12-28 23:18:40','0346279377','2021-12-28 23:18:40',1,'okela',4,4,83),(31,'RATEBI64016797D1','0346279377','2021-12-28 23:39:31','0346279377','2021-12-28 23:39:31',1,'ngon ak',4,13,83),(32,'RATEBI64016797D3','0346279377','2021-12-28 23:40:56','0346279377','2021-12-28 23:40:56',1,'te qua',2,2,83),(33,'RATEBI64032402D1','0346279377','2021-12-28 23:44:13','0346279377','2021-12-28 23:44:13',1,'ko ngon',1,7,83),(34,'RATEBI64071063D1','0346279377','2021-12-29 00:22:32','0346279377','2021-12-29 00:22:32',1,'ngon',5,14,83),(35,'RATEBI64071037D1','0346279377','2021-12-29 00:29:02','0346279377','2021-12-29 00:29:02',1,'tuyet',5,9,83),(36,'RATEBI64070996D1','0346279377','2021-12-29 00:31:05','0346279377','2021-12-29 00:31:05',1,'okie',4,4,83),(37,'RATEBI64016852D1','0346279377','2021-12-29 00:35:19','0346279377','2021-12-29 00:35:19',1,'mlem mlem',5,2,83),(38,'RATEBI64016777D3','0346279377','2021-12-29 00:41:05','0346279377','2021-12-29 00:41:05',1,'phe pha',4,2,83),(39,'RATEBI64016692D4','0346279377','2021-12-29 00:45:40','0346279377','2021-12-29 00:45:40',1,'ngon',5,2,83),(40,'RATEBI64028374D1','0346279377','2021-12-29 01:00:34','0346279377','2021-12-29 01:00:34',1,'ngon',5,6,83),(41,'RATEBI64032753D3','0346279377','2021-12-29 01:10:39','0346279377','2021-12-29 01:10:39',1,'ngon',5,7,83),(42,'RATEBI64163436D1','0336518152','2022-01-08 16:36:42','0336518152','2022-01-08 16:36:42',1,'tuyet',5,6,86),(43,'RATEBI64165020D1','0346279377','2022-01-08 20:59:41','0346279377','2022-01-08 20:59:41',1,'ngon',4,10,88),(44,'RATEBI64164192D1','0336518152','2022-01-09 18:04:12','0336518152','2022-01-09 18:04:12',1,'mlemmm',5,5,86),(45,'RATEBI64164213D1','0336518152','2022-01-10 08:55:06','0336518152','2022-01-10 08:55:06',1,'ngon quá',5,3,86),(46,'RATEBI64177994D1','0336518152','2022-01-18 17:13:28','0336518152','2022-01-18 17:13:28',1,'okieok',5,3,86);
/*!40000 ALTER TABLE `rate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reward`
--
DROP TABLE IF EXISTS `reward`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `reward` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`name` varchar(255) DEFAULT NULL,
`proviso` int NOT NULL,
`redution` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reward`
--
LOCK TABLES `reward` WRITE;
/*!40000 ALTER TABLE `reward` DISABLE KEYS */;
INSERT INTO `reward` VALUES (1,'R_01','admin','2021-11-29 08:58:40','admin','2022-01-18 17:20:18',0,'100 điểm giảm 5k',110,5000),(2,'R_02','admin','2021-11-29 08:59:24','admin','2021-11-29 08:59:24',1,'200 điểm giảm 11k',200,11000),(3,'R_03','admin','2021-11-29 09:00:17','admin','2021-11-29 09:00:17',1,'300 điểm giảm 17k',300,17000),(4,'R_04','admin','2021-11-29 09:01:39','admin','2021-11-29 09:01:39',1,'400 điểm giảm 25k',400,25000);
/*!40000 ALTER TABLE `reward` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `role`
--
DROP TABLE IF EXISTS `role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `role` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `role`
--
LOCK TABLES `role` WRITE;
/*!40000 ALTER TABLE `role` DISABLE KEYS */;
INSERT INTO `role` VALUES (1,'ROLE_ADMIN','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'ADMIN'),(2,'ROLE_STAFF','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'STAFF'),(3,'ROLE_USER','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'USER');
/*!40000 ALTER TABLE `role` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `size`
--
DROP TABLE IF EXISTS `size`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `size` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`price` float NOT NULL,
`size` varchar(255) DEFAULT NULL,
`product_id` bigint DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKj2c44yesw2o1kacfugn5oh6sg` (`product_id`),
CONSTRAINT `FKj2c44yesw2o1kacfugn5oh6sg` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `size`
--
LOCK TABLES `size` WRITE;
/*!40000 ALTER TABLE `size` DISABLE KEYS */;
INSERT INTO `size` VALUES (1,NULL,'admin','2021-11-14 18:37:35','admin','2021-11-14 18:37:35',0,15000,'S',1),(2,NULL,'admin','2021-11-14 18:37:35','admin','2021-11-14 18:37:35',0,20000,'M',1),(3,NULL,'admin','2021-11-14 18:37:35','admin','2021-11-14 18:37:35',0,22000,'L',1),(4,NULL,'admin','2021-11-14 23:16:48','admin','2021-11-14 23:16:48',0,20000,'S',2),(5,NULL,'admin','2021-11-14 23:16:48','admin','2021-11-14 23:16:48',0,25000,'M',2),(6,NULL,'admin','2021-11-14 23:16:48','admin','2021-11-14 23:16:48',0,27000,'L',2),(7,NULL,'admin','2021-11-14 23:20:46','admin','2021-11-14 23:20:46',0,25000,'S',3),(8,NULL,'admin','2021-11-14 23:20:46','admin','2021-11-14 23:20:46',0,30000,'M',3),(9,NULL,'admin','2021-11-14 23:20:46','admin','2021-11-14 23:20:46',0,32000,'L',3),(10,NULL,'admin','2021-11-14 23:22:31','admin','2021-11-14 23:22:31',0,25000,'S',4),(11,NULL,'admin','2021-11-14 23:22:31','admin','2021-11-14 23:22:31',0,30000,'M',4),(12,NULL,'admin','2021-11-14 23:22:31','admin','2021-11-14 23:22:31',0,32000,'L',4),(13,NULL,'admin','2021-11-14 23:26:15','admin','2021-11-14 23:26:15',0,30000,'S',5),(14,NULL,'admin','2021-11-14 23:26:15','admin','2021-11-14 23:26:15',0,35000,'M',5),(15,NULL,'admin','2021-11-14 23:26:15','admin','2021-11-14 23:26:15',0,37000,'L',5),(16,NULL,'admin','2021-11-14 23:33:55','admin','2021-11-14 23:33:55',0,30000,'S',6),(17,NULL,'admin','2021-11-14 23:33:55','admin','2021-11-14 23:33:55',0,35000,'M',6),(18,NULL,'admin','2021-11-14 23:33:55','admin','2021-11-14 23:33:55',0,37000,'L',6),(19,NULL,'admin','2021-11-14 23:45:45','admin','2021-11-14 23:45:45',0,17000,'S',7),(20,NULL,'admin','2021-11-14 23:45:45','admin','2021-11-14 23:45:45',0,22000,'M',7),(21,NULL,'admin','2021-11-14 23:45:45','admin','2021-11-14 23:45:45',0,24000,'L',7),(22,NULL,'admin','2021-11-14 23:47:00','admin','2021-11-14 23:47:00',0,25000,'S',8),(23,NULL,'admin','2021-11-14 23:47:00','admin','2021-11-14 23:47:00',0,30000,'M',8),(24,NULL,'admin','2021-11-14 23:47:00','admin','2021-11-14 23:47:00',0,32000,'L',8),(25,NULL,'admin','2021-11-14 23:48:19','admin','2021-11-14 23:48:19',0,17000,'S',9),(26,NULL,'admin','2021-11-14 23:48:19','admin','2021-11-14 23:49:17',0,22000,'M',9),(27,NULL,'admin','2021-11-14 23:48:19','admin','2021-11-14 23:48:19',0,24000,'L',9),(28,NULL,'admin','2021-11-14 23:50:30','admin','2021-11-14 23:50:30',0,25000,'S',10),(29,NULL,'admin','2021-11-14 23:50:30','admin','2021-11-14 23:50:30',0,30000,'M',10),(30,NULL,'admin','2021-11-14 23:50:30','admin','2021-11-14 23:50:30',0,32000,'L',10),(31,NULL,'admin','2021-11-14 23:51:28','admin','2021-11-14 23:51:28',0,25000,'S',11),(32,NULL,'admin','2021-11-14 23:51:28','admin','2021-11-14 23:51:28',0,30000,'M',11),(33,NULL,'admin','2021-11-14 23:51:28','admin','2021-11-14 23:51:28',0,32000,'L',11),(34,NULL,'admin','2021-11-15 00:19:40','admin','2021-11-15 00:19:40',0,25000,'S',12),(35,NULL,'admin','2021-11-15 00:19:40','admin','2021-11-15 00:19:40',0,30000,'M',12),(36,NULL,'admin','2021-11-15 00:19:40','admin','2021-11-15 00:19:40',0,32000,'L',12),(37,NULL,'admin','2021-11-15 00:20:30','admin','2021-11-15 00:20:30',0,25000,'S',13),(38,NULL,'admin','2021-11-15 00:20:30','admin','2021-11-15 00:20:30',0,30000,'M',13),(39,NULL,'admin','2021-11-15 00:20:30','admin','2021-11-15 00:20:30',0,32000,'L',13),(40,NULL,'admin','2021-11-21 09:49:43','admin','2021-11-21 09:49:43',0,25000,'S',14),(41,NULL,'admin','2021-11-21 09:49:43','admin','2021-11-21 09:49:43',0,30000,'M',14),(42,NULL,'admin','2021-11-21 09:49:44','admin','2021-11-21 09:49:44',0,32000,'L',14),(43,NULL,'admin','2022-01-08 21:08:09','admin','2022-01-08 21:08:09',0,20000,'S',15),(44,NULL,'admin','2022-01-08 21:08:09','admin','2022-01-08 21:08:09',0,25000,'M',15),(45,NULL,'admin','2022-01-08 21:08:09','admin','2022-01-08 21:08:09',0,27000,'L',15),(46,NULL,'admin','2022-01-08 23:40:38','admin','2022-01-08 23:40:38',0,20000,'S',16),(47,NULL,'admin','2022-01-08 23:40:38','admin','2022-01-08 23:40:38',0,25000,'M',16),(48,NULL,'admin','2022-01-08 23:40:38','admin','2022-01-08 23:40:38',0,27000,'L',16);
/*!40000 ALTER TABLE `size` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `store`
--
DROP TABLE IF EXISTS `store`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `store` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`address` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`time_close` varchar(255) DEFAULT NULL,
`time_open` varchar(255) DEFAULT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`image` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `store`
--
LOCK TABLES `store` WRITE;
/*!40000 ALTER TABLE `store` DISABLE KEYS */;
INSERT INTO `store` VALUES (1,'AT_THUDUC','anonymousUser','2021-11-14 14:38:32','admin','2022-01-18 17:19:06',1,'30 Võ Văn Ngân, Thủ Đức, Hồ Chí Minh','A&T Coffee','22:00','08:00',10.85291,106.76368,NULL),(2,'AT_DISTRICT2','anonymousUser','2021-11-14 14:38:32','admin','2021-11-14 14:41:01',1,'10 Mai Chí Thọ, Quận 2, TP. Hồ Chí Minh','A&T Coffee','23:00','08:00',10.84108,106.675842,NULL);
/*!40000 ALTER TABLE `store` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `store_product`
--
DROP TABLE IF EXISTS `store_product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `store_product` (
`store_id` bigint NOT NULL,
`product_id` bigint NOT NULL,
KEY `FKd91qk8cbmboomritdwn351tak` (`product_id`),
KEY `FKdncsr7lgl9pdsq71314etuwrp` (`store_id`),
CONSTRAINT `FKd91qk8cbmboomritdwn351tak` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`),
CONSTRAINT `FKdncsr7lgl9pdsq71314etuwrp` FOREIGN KEY (`store_id`) REFERENCES `store` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `store_product`
--
LOCK TABLES `store_product` WRITE;
/*!40000 ALTER TABLE `store_product` DISABLE KEYS */;
INSERT INTO `store_product` VALUES (2,5),(2,6),(2,14),(2,8),(2,10),(2,3),(2,9),(2,2),(2,4),(2,7),(2,13),(2,11),(2,12),(2,15),(2,16),(1,5),(1,6),(1,14),(1,8),(1,10),(1,3),(1,9),(1,2),(1,4),(1,7),(1,13),(1,11),(1,12),(1,15),(1,16),(1,1);
/*!40000 ALTER TABLE `store_product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `type`
--
DROP TABLE IF EXISTS `type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `type` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`name` varchar(255) DEFAULT NULL,
`point` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `type`
--
LOCK TABLES `type` WRITE;
/*!40000 ALTER TABLE `type` DISABLE KEYS */;
INSERT INTO `type` VALUES (1,'BRONZE','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'Đồng',1000),(2,'GOLD','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'Vàng',5000),(3,'PLATINUM','anonymousUser','2021-11-14 14:38:32','anonymousUser','2021-11-14 14:38:32',1,'Bạch Kim',12500);
/*!40000 ALTER TABLE `type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user` (
`id` bigint NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`modified_by` varchar(255) DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`accumulated_points` int NOT NULL,
`address` varchar(255) DEFAULT NULL,
`current_points` int NOT NULL,
`dob` datetime DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`gender` varchar(255) DEFAULT NULL,
`identity_card` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`phone` varchar(255) DEFAULT NULL,
`username` varchar(255) NOT NULL,
`role_id` bigint DEFAULT NULL,
`store_id` bigint DEFAULT NULL,
`type_id` bigint DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_sb8bbouer5wak8vyiiy4pf2bx` (`username`),
UNIQUE KEY `UK_ob8kqyqqgmefl0aco34akdtpe` (`email`),
UNIQUE KEY `UK_asr5dev2u6ub7h86bj1b5jp9m` (`identity_card`),
UNIQUE KEY `UK_589idila9li6a4arw1t8ht1gx` (`phone`),
KEY `FKn82ha3ccdebhokx3a8fgdqeyy` (`role_id`),
KEY `FK1k3x2kt9pxcmon8jhquv31qe4` (`store_id`),
KEY `FK555mrysh748xyw2vtn5lbasw8` (`type_id`),
CONSTRAINT `FK1k3x2kt9pxcmon8jhquv31qe4` FOREIGN KEY (`store_id`) REFERENCES `store` (`id`),
CONSTRAINT `FK555mrysh748xyw2vtn5lbasw8` FOREIGN KEY (`type_id`) REFERENCES `type` (`id`),
CONSTRAINT `FKn82ha3ccdebhokx3a8fgdqeyy` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=94 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (1,'AN_TV','anonymousUser','2021-11-14 14:38:33','mint','2022-04-29 10:10:59',1,285,'9 Trình Hoài Đức, Quận 9',285,'2016-02-06 07:00:00','[email protected]','Nam','215523098','https://res.cloudinary.com/tranan2509/image/upload/v1635433632/logo_hvnmwc.png','Tran Van An','$2a$10$LQVTg8Y0FJRQP9g97nqc7.7.9dqlpuRKhp.IV9kzGjSzVr5EbtIL2','01692889894','admin',1,1,1),(2,'THU_NTM','anonymousUser','2021-11-14 14:38:33','admin','2022-01-18 17:18:38',1,0,'9 Trình Hoài Đức, Quận 9',0,'2021-11-14 07:00:00','[email protected]','Nam','215533098','https://res.cloudinary.com/tranan2509/image/upload/v1635433632/logo_hvnmwc.png','Nguyen Thi Minh Thu','$2a$10$/hAN0I6u4QEpQx6MQ05DWOftsmCixVtDWiEFKCgN/9mgR/k4zppcS','01692889893','staff',2,1,NULL),(53,'0975226327',NULL,NULL,'mint','2022-04-29 09:24:05',1,539,'2 Le Van Viet Hiep Binh quan 9',439,'2021-11-27 15:51:07','[email protected]','Nam','334672999','https://res.cloudinary.com/tranan2509/image/upload/v1637334237/male_d5nb3t.jpg','Nguyen Tran Nam','$2a$10$n1epnq9Gc/GpT4Sc95upPubIlCDhQ9fMNVoHxNEHCKcYHZh76YO2a','0975226327','0975226327',3,1,1),(68,'NGAN_NTK','admin','2021-12-13 18:42:39','admin','2022-01-08 21:10:22',1,0,'Ấp Bà Nhì xã Đôn Xuân huyện Duyên Hải tỉnh Trà Vinh',0,'2000-12-13 07:00:00','[email protected]','Nữ','2223333','https://res.cloudinary.com/tranan2509/image/upload/v1639395758/lct2kqdtf1nwby9akzkk.png','Nguyen Thi Kim Ngan','$2a$10$5cgf1gFY8bdXShkHbkjGeuccH1W.rZGk2WntxLHw5t4IMJqWkLya6','0367924328','mint',2,2,NULL),(83,'0346279378','anonymousUser','2021-12-19 22:28:18','staff','2021-12-29 18:31:52',1,1412,'2/5 duong 68 phuong Hiep Phu quan Thu Duc',1412,'1970-01-01 07:00:00','[email protected]','Nam','3342323232','https://res.cloudinary.com/tranan2509/image/upload/v1637334237/male_d5nb3t.jpg','Le Dang Anh','$2a$10$ttrn/2c1zqRr0pwWaFmvc.8lNgcszqualb0KY36dIKcJRIkvBdgUG','0346279378','0346279378',3,1,1),(84,'0397830379','anonymousUser','2021-12-25 07:17:26','staff','2021-12-28 23:52:25',1,203,'2/5 duong 68 Hiep Phu quan 9',203,'1970-01-01 07:00:00','[email protected]','Nữ','3372894028','https://res.cloudinary.com/tranan2509/image/upload/v1637334237/fmale_hus1yd.jpg','Nguyen Minh Thu','$2a$10$m7W6NsSGOmgcN5ydT3LKnOB4BknpXQ1e7H2nfu3di0DbAA.xwQbZy','0397830379','0397830379',3,1,1),(86,'0336518152',NULL,NULL,'staff','2022-01-10 09:37:21',1,237,'2/5 duong 68 TpHCM',127,'1970-01-01 07:00:00','[email protected]','Nữ','5456465464','https://res.cloudinary.com/tranan2509/image/upload/v1637334237/fmale_hus1yd.jpg','Nguyen Thi Minh Thu','$2a$10$HRErL5kS1lpF5iC6x9uGXeDjzVw.UsGJqohTro1AE5lqIgMqL8vbK','0336518152','0336518152',3,1,1),(88,'0346279377','anonymousUser','2022-01-08 21:13:13','mint','2022-05-24 21:10:45',1,284,'2/5 duong 68 tp HCM',284,'1970-01-01 07:00:00','[email protected]','Nữ','447382937','https://res.cloudinary.com/tranan2509/image/upload/v1637334237/fmale_hus1yd.jpg','Nguyen Thi Kim Ngan','$2a$10$FEUvMB3JP1S59Q8DL4jsfOYa5IaoOfWgHsXeT2xXmUZqZBZr1DYKy','0346279377','0346279377',3,1,1),(89,'NVA','admin','2022-01-08 21:13:13','admin','2022-04-29 10:02:17',0,0,'2/5 duong 68',0,'2012-01-04 07:00:00','[email protected]','Nam','33850284','https://res.cloudinary.com/tranan2509/image/upload/v1641651192/bkrwzytgpgewbtzb2uwr.jpg','Nguyen Van A','$2a$10$adx9xJ/y2cN6GEU56l2F5eNdxZesi19r3fH2QzTs7mF0M/27973hK','0947383932','nva',2,2,NULL),(92,'NVB','admin','2022-01-08 23:44:07','admin','2022-01-08 23:44:07',1,0,'2/5 duong 68',0,'2021-03-29 07:00:00','[email protected]','Nam','334859206','https://res.cloudinary.com/tranan2509/image/upload/v1641660245/utwvaofvvaaijnwhieb4.png','Nguyen Van B','$2a$10$dfPQo3/Rhib9eplAEBxLCeON6Uiwd6pdV0NGHTMJkXIgP7BIjTS9O','0987433728','nvb',2,2,NULL);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_product`
--
DROP TABLE IF EXISTS `user_product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_product` (
`user_id` bigint NOT NULL,
`product_id` bigint NOT NULL,
KEY `FKnw43wab2rt35jmofmpbhkibco` (`product_id`),
KEY `FKq5o2e33vlwpfc2k1mredtia6p` (`user_id`),
CONSTRAINT `FKnw43wab2rt35jmofmpbhkibco` FOREIGN KEY (`product_id`) REFERENCES `product` (`id`),
CONSTRAINT `FKq5o2e33vlwpfc2k1mredtia6p` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_product`
--
LOCK TABLES `user_product` WRITE;
/*!40000 ALTER TABLE `user_product` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_product` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping events for database 'atcoffee'
--
--
-- Dumping routines for database 'atcoffee'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2022-06-02 22:02:23