Open mmcnulty20 opened 4 years ago
previous_reservations
association on the model utilizing the reservations table and the date on it compared against the current date.owner_id
wouldn't be necessary on the restaurant table.reservation_id
should be unique on the reviews table if a user can't leave more than one review for a single restaurant reservation (if a user can't leave more than one review on a restaurant at all, send me a slack and we'll discuss)
Good work on design docs so far, here's some changes that I'd like to see reflected going forward:
MVP List
Schema
created_at
andupdated_at
columns.($, $$, $$$)
is listed after cuisine but is probably intended as the valid options for pricereservation_id
combined with theuser_id
andrestaurant_id
for reviews: that's duplicating information you could pull from associations.