Changes between Initial Version and Version 1 of UseCase11


Ignore:
Timestamp:
01/24/26 13:43:23 (2 weeks ago)
Author:
231035
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase11

    v1 v1  
     1= UseCase11 - Leave a !VetClinic review
     2** Initiating actor: Client **
     3== Description
     4A logged-in client can submit a review about a vet clinic in the system. A client can review a vet clinic only if the client has at least one completed (DONE) appointment at that clinic for at least one of their pets(he is the current owner).
     5== Scenario
     61. Client opens the clinics page.
     7{{{
     8SELECT clinic_id, name, city, address
     9FROM vet_clinics
     10WHERE clinic_id = $1;
     11}}}
     122. Clicks the "Leave review" button.
     133. Client enters rating, comment and submits.
     14{{{
     15BEGIN;
     16
     17INSERT INTO reviews (reviewer_id, rating, comment, created_at)
     18VALUES ($1, $2, $3, NOW())
     19RETURNING review_id;
     20
     21INSERT INTO clinic_reviews (review_id, target_clinic_id)
     22VALUES ($4, $5);
     23
     24COMMIT;
     25}}}