Question: ( E ) ER model Design Specification Yelp is a local business directory service and review site with social networking features. It allows users to
EER model
Design Specification
Yelp is a local business directory service and review site with social networking features. It allows users to give ratings and review businesses. You are going to design the database system for Yelp wwwyelp.com It should store and manage the following information but it is not exactly same as real Yelp website. However, if you have ambiguous parts you can assume data type based on real Yelp system:
Yelp User
A Yelp user has a unique yelp ID first name, last name, gender, birthdate, birthplace, age, email, a profile picture, and list of friend ids. Yelp users can be complimented by their friends. A Yelp user can rate any business on a scale of and provide reviews. A user has an Activity Wall" where most recent Yelp reviews by user's friends are posted on the wall when the user follows her friends activities. In addition, the user can checkin to a particular business.
Reviews
Review has an unique ID publish date, and textual content where the content can be text, photo, or a short video. It has one author and belongs to one business. Also a review has number of stars and number of total votes. Votes can be categorized as useful and nonuseful with a list of users that voted for each of these categories. Moreover, a review has a list of comments where each comment has an author, textual content, and date.
Business
A business has an ID address street state, zip code, latitude, longitude number of reviews, and stars. Also each business has hours and days of operation. Other attributes of business include parking type street garage, lot, or valet and ambient type romantic classy, touristy, or casual A business maintains a list of checkin IDs. A review is belonged to a business.
Business Category
Each business has one category. Business category has an ID name, and a list of subcategories. Some categories and their subcategories are as follow:
Health & Medical: Dentists, Optometrists, Hospital, Doctors, Physical Therapy, and Allergists
Restaurants: Bars, Sandwiches, Diners, Burgers, Pizza, Seafood, and Salad
Hotels & Travel: Bed & Breakfast, Event Planning & Services, and Car Rentals
Shopping: Flowers & Gifts, Art Supplies, Hardware Stores, Drugstores, Convenience Stores, Department Stores, Home Services, Outlet Stores, and Florists
Food: Bakeries, Coffee & Tea, Grocery, and Food Delivery Services
Beauty & Spas: Cosmetics & Beauty Supply, and Fashion
Fitness & Instruction: Active Life, Gyms, Weight Loss Centers, Trainers, Pilates, and Nutritionists
Education: Colleges & Universities, Middle Schools & High Schools, Adult Schools, Specialty Schools, Dance Studios, Preschools, Child Care & Day Care.
You may choose only two of the above categories and their corresponding subcategories for demonstration purposes.
Photo
A Photo has a unique ID an author, a description, location, and a list of users who liked the photo. Each photo is either a business photo or a personal photo. A business photo is only visible to a user who checked into that particular business. A business photo is belonged to a business.
Checkin
A checkin has an ID and checkin info. A checkin is belonged to a business. A user can checkin to a business multiple times.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
