Let's build Online Ordering App (clone-able)

Database design of this app can be roughly described below:

User will create new order header in order to save date and payment status, as well as total order.
Order header will be the parent of order detail that hold value of quantity and product, as well as line total.
Product is linked to order detail, as order detail can only have 1 product.

After payment, new order header can be created again and following the same process again.