Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulinetw/rails-yelp-mvp
Restaurant reviews app
https://github.com/paulinetw/rails-yelp-mvp
Last synced: 4 days ago
JSON representation
Restaurant reviews app
- Host: GitHub
- URL: https://github.com/paulinetw/rails-yelp-mvp
- Owner: PaulineTW
- Created: 2021-11-16T07:45:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-13T08:33:19.000Z (about 3 years ago)
- Last Synced: 2024-11-10T09:35:28.252Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 329 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
Schema
A restaurant has a name, an address, a phone number, a category (chinese, italian...) and many reviews
A review has a content and a rating (between 0 and 5) and references a restaurant
Question: Can you draw this simple schema at db.lewagon.org? Discuss with your buddy.Validation
A restaurant must have at least a name and an address.
The restaurant category should belong to a fixed list ["chinese", "italian", "japanese", "french", "belgian"].
A review must have a parent restaurant.
A review must have a content and a rating. The rating should be a number between 0 and 5.
When a restaurant is destroyed, all reviews should be destroyed as well.