Changes between Initial Version and Version 1 of UseCase05


Ignore:
Timestamp:
05/08/26 03:07:48 (4 hours ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase05

    v1 v1  
     1== Use-case 0005 - Leave a Review
     2
     3'''Initiating actor:''' Pet Owner
     4
     5'''Other actors:''' Pet Sitter
     6
     7'''Description:'''
     8After a booking has successfully finished, the Pet Owner can submit a review about the Pet Sitter. The owner leaves a rating out of 5 and a comment. The system links this review directly to the completed booking.
     9
     10'''Scenario:'''
     11 1. Pet Owner goes to their "Past Bookings" page.
     12 2. System fetches all bookings that belong to this owner to display on the screen:
     13{{{
     14#!sql
     15SELECT booking_id, date_from, address, status
     16FROM bookings
     17WHERE owner_id = (SELECT user_id FROM users WHERE username = 'owner_bojan')
     18ORDER BY date_from DESC;
     19}}}
     20 3. Owner clicks "Leave a Review" on a specific completed booking.
     21 4. Owner enters a 5 star rating, types a comment, and clicks submit.
     22 5. System creates the review record attached to that exact transaction:
     23{{{
     24#!sql
     25INSERT INTO reviews (rating, comment, booking_id)
     26VALUES (
     27    5,
     28    'Filip was amazing! Sharka loved her walks.',
     29    (SELECT booking_id FROM bookings WHERE address = 'ul. Partizanska br. 10, Skopje' LIMIT 1)
     30);
     31}}}