I am in the process of creating a database for a taxi booking service. I would like your help reviewing my design, also answering some questions i already have. First let me explain the logic. There will be no user log in. You will be required to give a Name,Last Name, email, phone, location,day and time, and your entry will be accepted.
Here are the tables.
CUSTOMER TABLE
Customer_ID INT (PK,NN,AI,UN)
firstName VARCHAR(45) (NN)
lastName VARCHAR(45) (NN)
Email VARCHAR(50) (NN)
Phone VARCHAR(20) (NN)
RIDE
Ride_ID INT (PK,NN,AI,UN)
pickUpLocation TEXT(50) (NN)
Destination TEXT(50) (NN)
rideDate DATE (NN)
rideTime TIME (NN)
babyOnBoard VARCHAR(45)
My questions are as follows:
- In MySQL Workbench, TIME has a parenthesis and needs a parameter, otherwise it is not accepted. What are the parameters? The same goes for TEXT. Are the TEXT parameters the same as VARCHAR?
2.What in your opinion should be the Foreign Key in Ride table? rideDate with rideTime?
If you have any other suggestions, will like to hear them.
This is my first database, so please take this into account.