wiki:UseCase16

Version 1 (modified by 181201, 8 days ago) ( diff )

--

Use-case 0016 - Edit a Pet Profile

Initiating actor: Pet Owner

Other actors: None

Description: A Pet Owner wants to update the details of an existing pet, such as its age, photo URL, or special needs.

Scenario:

  1. Pet Owner navigates to their "My Pets" dashboard.
  2. Owner clicks the "Edit Pet" button next to a specific pet.
  3. Owner updates the age and special needs, and submits the form.
  4. System updates the pet record in the database:
    UPDATE pets
    SET age = 5, special_needs = 'Needs medication pill every 12 hours', photo = 'new_photo_url.jpg'
    WHERE pet_id = 'specific-pet-uuid-here'
      AND owner_id = (SELECT user_id FROM users WHERE username = 'owner_bojan');
    
Note: See TracWiki for help on using the wiki.