Changes between Version 1 and Version 2 of UseCase09


Ignore:
Timestamp:
01/25/26 18:18:48 (2 weeks ago)
Author:
231035
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase09

    v1 v2  
    22** Initiating actor: Client **
    33== Description
    4 A client adds a new pet to their profile by filling in an “Add Pet” form. The client must upload a pet photo and the pet’s document (vaccination card, passport). With this the client now becomes an owner.
     4A client adds a new pet to their profile by filling in an “Add Pet” form. The client must upload a pet photo. With this the client now becomes an owner.
    55== Scenario
    661. Client goes to his profile.
     
    883. Fills in the form provided.
    994. Submits it.
     10{{{
     11INSERT INTO animals (
     12  owner_id,
     13  name,
     14  sex,
     15  date_of_birth,
     16  photo_url,
     17  type,
     18  species,
     19  breed,
     20  located_name
     21)
     22VALUES (
     23  (SELECT user_id FROM users WHERE username = 'client.viktor'),
     24  'Bella',
     25  'FEMALE',
     26  '2022-04-15',
     27  'https://cdn.petify.com/pets/bella.jpg',
     28  'PET',
     29  'Dog',
     30  'Golden Retriever',
     31  'Skopje'
     32);
     33}}}
     345. The system sends a notification.
     35{{{
     36INSERT INTO notifications (user_id, type, message)
     37VALUES (
     38  (SELECT user_id FROM users WHERE username = 'client.viktor'),
     39  'PET',
     40  'Your pet Bella has been successfully added to your profile.'
     41);
     42}}}
     436. The client becomes an owner.
     44{{{
     45INSERT INTO owners (user_id)
     46SELECT user_id
     47FROM users
     48WHERE username = 'client.viktor';
     49}}}