Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

User: Represents all users of the CityWheelsBH app, including both drivers and passengers.Attributes: UserID ( Primary Key ) , Name, ContactNumber, Email, UserType ( Driver

User: Represents all users of the CityWheelsBH app, including both drivers and passengers.Attributes: UserID (Primary Key), Name, ContactNumber, Email, UserType (Driver/Passenger), RatingDriver: Represents individuals who offer rides through the CityWheelsBH app.Attributes: DriverID (Primary Key), UserID (Foreign Key referencing User.UserID), LicenseNumber, InsuranceDetailsVehicle: Represents the vehicles available for rides.Attributes: VehicleID (Primary Key), DriverID (Foreign Key referencing Driver.DriverID), Make, Model, Year, LicensePlate, AvailabilityRide: Represents each individual ride requested by a passenger and completed by a driver.Attributes: RideID (Primary Key), PassengerID (Foreign Key referencing User.UserID), DriverID (Foreign Key referencing Driver.DriverID), VehicleID (Foreign Key referencing Vehicle.VehicleID), StartLocation, EndLocation, StartTime, EndTime, FarePayment: Represents the payments made for each ride.Attributes: PaymentID (Primary Key), RideID (Foreign Key referencing Ride.RideID), Amount, PaymentMethod, PaymentStatusFeedback: Represents the feedback left by users after each ride.Attributes: FeedbackID (Primary Key), RideID (Foreign Key referencing Ride.RideID), Rating, CommentPromotion: Represents the promotional offers and discounts provided by CityWheelsBH.Attributes: PromoID (Primary Key), PromoCode, DiscountPercentage, ExpiryDateSupportRequest: Represents the support requests raised by users.Attributes: RequestID (Primary Key), UserID (Foreign Key referencing User.UserID), IssueDescription, StatusMaintenanceRecord: Represents the maintenance records for each vehicle.Attributes: MaintenanceID (Primary Key), VehicleID (Foreign Key referencing Vehicle.VehicleID), MaintenanceDate, DescriptionBookingRequirement: Represents the additional requirements for a ride, such as child seats.Attributes: RequirementID (Primary Key), RideID (Foreign Key referencing Ride.RideID), RequirementType, QuantityRelationships:User-Feedback: One user can provide feedback for many rides. (1:N)User-Payment: One user can make many payments for different rides. (1:N)User-SupportRequest: One user can submit multiple support requests. (1:N)Driver-Vehicle: One driver can have multiple vehicles. (1:N)Driver-Ride: One driver can complete multiple rides. (1:N)Vehicle-Ride: One vehicle can be used for multiple rides. (1:N)Ride-Feedback: One ride can receive feedback from one passenger. (1:1)Ride-Payment: One ride can have one payment. (1:1)Ride-BookingRequirement: One ride can have multiple booking requirements. (1:N)Promotion-Ride: One promotion can be used for multiple rides. (M:N)
Create an erd diagram

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions