Uber - Software Engineer(Data)

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-10-04Added By Anonymous
Source: Link

Company: Uber

Role: Software Engineer (Data)


Original Post Content:

Implement a flight booking system that allows users to search and book flights and enables admins to add flight details and show bookings for that flight.


User functionalities:

flightSearch

bookFlight

addUser


Admin functionalities:

addFlight

showBookings


Proposed Data Models:


User: user_id, name, phone, email_id, identity_card, userType


Admin: admin_id, name, phone, email_id, identity_card


Flights: flight_id, no_of_seats, src, desc, time_duration


Bookings: flight_id, user_id, seat_number, src, desc

Comments