Hi I am currently trying to build a database for a project.
Currently all orders must have a customer, customers have an address and then they have a shipto address. Up to 10 different shipto addresses can be added. And each order could be shipping to a different address of that customer.
Would anyone know how I should model this?
Orders
------
ID
customerID (referencing ID from customers)
other rubbish
Customers
---------
ID
Address
Email
Phone
other rubbish
Shipto
------
ID
CustomerID (referencing ID from customers)
Address
other address related stuff
How should all of these be linked?
*edit Was just thinking, should customers belong to order? Or should orders belong to customers?