| | 1 | == Use-case 0015 - Complete a Booking |
| | 2 | |
| | 3 | '''Initiating actor:''' Pet Sitter |
| | 4 | |
| | 5 | '''Other actors:''' Pet Owner |
| | 6 | |
| | 7 | '''Description:''' |
| | 8 | After a booking has finished, the Sitter logs in and marks it as completed. This transitions the status to 'Completed' and allows the Owner to leave a review. |
| | 9 | |
| | 10 | '''Scenario:''' |
| | 11 | 1. Pet Sitter navigates to their "Pending Requests" dashboard. |
| | 12 | 2. Sitter finds a Confirmed booking that has finished and clicks "Mark as Completed". |
| | 13 | 3. System updates the booking status in the database: |
| | 14 | {{{ |
| | 15 | #!sql |
| | 16 | UPDATE bookings |
| | 17 | SET status = 'Completed' |
| | 18 | WHERE booking_id = 'specific-booking-uuid-here'; |
| | 19 | }}} |