Changes between Initial Version and Version 1 of UseCase16


Ignore:
Timestamp:
05/17/26 20:02:45 (9 days ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase16

    v1 v1  
     1== Use-case 0016 - Edit a Pet Profile
     2
     3'''Initiating actor:''' Pet Owner
     4
     5'''Other actors:''' None
     6
     7'''Description:'''
     8A Pet Owner wants to update the details of an existing pet, such as its age, photo URL, or special needs.
     9
     10'''Scenario:'''
     11 1. Pet Owner navigates to their "My Pets" dashboard.
     12 2. Owner clicks the "Edit Pet" button next to a specific pet.
     13 3. Owner updates the age and special needs, and submits the form.
     14 4. System updates the pet record in the database:
     15{{{
     16#!sql
     17UPDATE pets
     18SET age = 5, special_needs = 'Needs medication pill every 12 hours', photo = 'new_photo_url.jpg'
     19WHERE pet_id = 'specific-pet-uuid-here'
     20  AND owner_id = (SELECT user_id FROM users WHERE username = 'owner_bojan');
     21}}}