InsertParkingSpace & SelectParkingSpace doesn't show all possible parking space types
Closed this issue · 8 comments
sassansh commented
sassansh commented
Junkim97 commented
That's because the parking space table hasn't been populated with any spots of of those types.
sassansh commented
but you should be able to add a space of that type given that it exists in the rates table, no? The lot doesnt currently have any medium size spaces but given that it exists in the rates table, you should be able to add a space of that type.
sassansh commented
Parking Spaces' space_type references Rates:
FOREIGN KEY (Space_Type) References Rate(Rate_Type)
Junkim97 commented
sassansh commented
In the normalization, we incorrectly created a M:M table for a space and a rate. However a space can only have one rate. So it is correctly stored in the space now. Was a recent change. There’s a commit for it.
Junkim97 commented
Ok I'll take a look tomorrow.
sassansh commented
fixed it!