I have a need to have a working database for a travel booking site that handles hotels, flights, and car rentals.
Tables:
Customers: CUSTID, First Name, Last Name, Address etc...
Sales Orders: ORDERID,CUSTID, Order Date, Order Method
Invoices: INVOICEID, CUSTID, ORDERID, Invoice Date, Amount etc...
Flights: FLIGHTID, Depart City, Depart Time, Depart Date, Arrival etc...
I'm struggling with the relationships to setup. I need to be able to run queries on invoices and customers.
I view hotels, flights, car rentals as products but they are very different, especially how flights have itineraries. So I am confused how to set that up but I think they all have to be separate tables. Then how do I link each of those 3 tables back to an order and invoice?
I was going to link it through the "sales orders" table but I am not so sure that will work or how to set it up.
Any help would be greatly appreciated, thank you.