Open aracpyon opened 4 years ago
state
Hey Elvin, your state looks great so far! Probably we want to make a state for categories
but we can talk about this later during our fullstack meeting. The good reference for categories would be reddit clone
project's many to many relationship between post
,sub
and user
Great job on the design doc, Elvin! Here are my reviews:
MVPs
Schema
fname
,lname
,birthday
column toUsers
tablelocation
tozipcode
onUsers
latitude
andlongitude
columns withfloat
datatype toBusinesses
(This will be useful for Map mvp later)city
,state
,price_range
columns onBusinesses
(useful for search later)author_id
on the scope ofbusiness_id
(user can leave a review only once per business) onReviews
tablecategories
table andcategories_businesses
table(joins table).Categories
has types of business andcategories_businesses
is a joins table between categories and businesses. The joins table is for many-to-many relationship: each business can fall into multiple categories, and each category can apply to many businesses.