| | 1 | = UseCase2003 – Register Subject to Faculty |
| | 2 | |
| | 3 | **Initiating actor:** Professor |
| | 4 | |
| | 5 | **Other actors:** Administrator |
| | 6 | |
| | 7 | **Description:** |
| | 8 | A professor creates or registers a subject that belongs to their faculty and will be available for students. |
| | 9 | |
| | 10 | **Scenario:** |
| | 11 | |
| | 12 | 1. Professor selects “Add New Subject” |
| | 13 | |
| | 14 | 2. System shows subject creation form: |
| | 15 | |
| | 16 | - Name |
| | 17 | |
| | 18 | - Semester |
| | 19 | |
| | 20 | - Credits |
| | 21 | |
| | 22 | 3. Professor submits subject information. |
| | 23 | |
| | 24 | 4. System inserts subject into database: |
| | 25 | {{{ |
| | 26 | INSERT INTO Subject(Faculty_Id, Name, Semester, Credits) |
| | 27 | VALUES (:faculty_id, :name, :semester, :credits); |
| | 28 | }}} |
| | 29 | |
| | 30 | 5. System links subject to professor: |
| | 31 | {{{ |
| | 32 | INSERT INTO Subject_Professor(Subject_Id, Professor_Id) |
| | 33 | VALUES (:subject_id, :professor_id); |
| | 34 | }}} |
| | 35 | |
| | 36 | 6. System confirms subject registration. |