【发布时间】:2021-09-11 23:53:39
【问题描述】:
我在网站上有三项服务 当用户订购其中一项服务时。该订单存储在自己的表中 所以我们有三个表来存储每个服务的订单信息
table order
-id
-And shared information such as amount or number
table Service1_Order
-id
- and Specific fields of this service
table Service2_Order
-id
- and Specific fields of this service
table Service3_Order
-id
- and Specific fields of this service
现在,当我们想向用户显示所有订单时,我们无法将它们带到一个页面。我们必须为每个服务创建一个新的订单页面,但这是一个错误。怎样才能在一页一表中显示所有订单(因为每个服务都有自己的信息) 表之间应该有什么关系?
【问题讨论】:
标签: mysql laravel migration relationship