Changes between Version 1 and Version 2 of UC3003


Ignore:
Timestamp:
06/15/26 14:17:31 (2 days ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UC3003

    v1 v2  
    33**Initiating actor:** Student
    44
    5 **Other actors:** Professor
     5**Other actors:** None
    66
    77**Description:**
    8 Student requests academic advising from a professor.
     8Student requests academic advising from a professor within their faculty.
    99
    1010**Scenario:**
    1111
    12 1. Student selects “Request Advisor”
     121. Student selects “Request Advisor”.
    1313
    14142. System lists professors available in the student’s faculty:
     
    1616SELECT p.Id, p.Name, p.Surname
    1717FROM Professor p
    18 JOIN Faculty f ON p.Faculty_Id = f.Id
    19 JOIN Student st ON st.Faculty_Id = f.Id
     18JOIN Student st ON st.Faculty_Id = p.Faculty_Id
    2019WHERE st.Id = :student_id;
    2120}}}
    2221
    23 3. Student selects professor and sends request.
     223. Student selects a professor and submits the request.
    2423
    25 4. System creates advising relationship (pending or immediate):
     244. System creates the advising relationship in the database:
    2625{{{
    2726INSERT INTO Advice(Student_Id, Professor_Id, Start_Date, End_Date)
    28 VALUES (:student_id, :professor_id, CURRENT_DATE, NULL);
     27VALUES (:student_id, :professor_id, :start_date, :end_date);
    2928}}}
    3029