In this database there are nine collections, Admin, Location, Driver,
Owner, Customer, Car, Booking, Reviews, Payment. The admin will login into the website with their details, The Admin collection contains the username and password these are stored in the admin collection. The admin will add the location, the location collection contains the location_name. Drivers will view the website and register into the website with their valid details, the Driver collection contains the name, phone_number, age, id_proof, email, password and status, all stored in the driver collection. After the registration of the driver the admin will view the driver details then verify the driver details if those are valid the status is updated to “ verified”. The car owner want’s to rent their cars then the owner will login into the website with their valid details. The owner should enter the car details into the website, the car collection contains the car_type, car_number, location_id, car_iamge, seating_capacity, owner_id and status. These car details will be checked and verified by the admin. The owner_id and location_id are the reference keys used in the car collection The customer collection contains the customer_name, phone, email, gender, id_proof, age, address, password. The customer details stores in the database. The customer can view and book the verified cars. The booking details are stored in the booking collection. The booking collection contains the customer_id, driver_id, from_date_time, to_date_time, car_id, is_driver_needed, total_price, status. The driver_id, car_id and customer_id are the reference keys used in the booking collection. The customer can also see the reviews. The reviews collection contains the booking_id, review, rating, date. The booking_id is the reference key used in the review collection After booking the customer can proceed to payments. The payments collection contains the booking_id, card_number, admin_percentage, date_time, total_amount, status. The booking _id is the reference key used in the payment collection. ER Diagram DATABASE COLLECTION Sample Snippets