Use-case 0007 - Accept a Booking
Initiating actor: Pet Sitter
Other actors: Pet Owner
Description: A Pet Sitter logs in and sees they have a new pending booking request. They review the dates, the requested service, and decide to accept the job. The system updates the booking status.
Scenario:
- Pet Sitter goes to their "Pending Requests" dashboard.
- System fetches all bookings assigned to them that are still pending:
SELECT booking_id, date_from, date_to, address FROM bookings WHERE sitter_id = (SELECT user_id FROM users WHERE username = 'sitter_filip') AND status = 'PENDING';
- Sitter clicks the "Accept Booking" button on a specific request.
- System updates the status of the booking in the database to CONFIRMED:
UPDATE bookings SET status = 'CONFIRMED' WHERE booking_id = ( SELECT booking_id FROM bookings WHERE status = 'PENDING' AND sitter_id = (SELECT user_id FROM users WHERE username = 'sitter_filip') LIMIT 1 );
Last modified
2 hours ago
Last modified on 05/08/26 03:11:46
Note:
See TracWiki
for help on using the wiki.
