|
|
@ -24,4 +24,15 @@ CREATE TABLE `order` ( |
|
|
|
PRIMARY KEY (`id`), |
|
|
|
KEY `fk_senderId` (`senderId`), |
|
|
|
CONSTRAINT `fk_senderId` FOREIGN KEY (`senderId`) REFERENCES `user` (`id`) |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
|
|
|
|
|
|
|
|
|
|
|
insert into `user` values(5,"betaberry","100299","110"); |
|
|
|
|
|
|
|
insert into `order` values(1,"订单1","2020/12/10","中北校区,河西食堂后面", 5, 1, 10, "已接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
insert into `order` values(2,"订单2","2020/12/11","中北校区,河西食堂后面", 5, 6, 60, "已接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
insert into `order` values(3,"订单3","2020/12/12","中北校区,河西食堂后面", 5, 8, 80, "已接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
insert into `order` values(4,"订单4","2020/12/13","中北校区,河西食堂后面", 5, null, 10, "待接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
insert into `order` values(5,"订单5","2020/12/14","中北校区,河西食堂后面", 5, null, 60, "待接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
insert into `order` values(6,"订单6","2020/12/15","中北校区,河西食堂后面", 5, null, 60, "待接单","加油!奥力给","2020/12/10 10:30:30"); |
|
|
|
|