Changes between Initial Version and Version 1 of UseCase0001


Ignore:
Timestamp:
01/10/26 17:47:59 (10 days ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0001

    v1 v1  
     1Use-case 0001 - User Registration
     2
     3Initiating actor:
     4Guest (Unauthenticated visitor)
     5
     6Other actors:
     7None
     8
     9Description:
     10The guest creates a new account in the system by providing personal information (name, email, phone, gender, birthday). The system validates that the email is unique and saves the user in the database.
     11
     12Scenario:
     13
     14User opens the registration page.
     15
     16System displays the registration form with fields: first name, last name, email, phone number, gender, birthday.
     17
     18User fills the form and submits.
     19
     20System validates that the email is not already used.
     21
     22{{{
     23SET search_path TO project;
     24
     25SELECT user_id
     26FROM "user"
     27WHERE email = :email;
     28}}}
     29
     30If the email is unique, the system creates a new account.
     31
     32{{{
     33SET search_path TO project;
     34
     35INSERT INTO "user"(first_name, last_name, email, phone_number, gender, birthday)
     36VALUES (:first_name, :last_name, :email, :phone_number, :gender, :birthday)
     37RETURNING user_id;
     38}}}
     39
     40System confirms successful registration and shows the login page.