Module 11 Β· Bookings β Lesson 1 of 3 Β· ~12 min
The Booking domain
The heart of the app
PawWalk sells one thing: a walk. A booking is the record of one β this user hired this walker for this long, at this time, for this price. Every other feature (payments, GPS tracking, the chat) hangs off a booking. So the type that models it is the most important struct in the whole backend.
In the iOS course you already saw this shape from the app's side β a booking form that posted a walker id, a duration, and a date. Now you build the thing that receives it and gives it a life: a status, a price, an id.