I'm new to database design and I need some critiques, feedback, suggestions, advice, etc. regarding a) some business rules, b) the entity-relationship diagram I have developed to represent them, and c) whether or not they "match".
Business rules
The relevant business rules are as follow:
- Users can rate multiple businesses
- A business can fall under more than one category
- Users can comment on multiple businesses
- Businesses can have zero to many ratings
- Businesses can have zero to many comments
- A business can only be located in one and only one city
- A city can have multiple businesses
- A category can have multiple businesses
- Users can have one or more checkins for businesses
- Businesses can have zero to many checkins
My entity-relationship diagram
And I have represented them in the diagram below: