| | 1 | = UseCase1003 – Assign Professors to Universities |
| | 2 | |
| | 3 | **Initiating actor:** Administrator |
| | 4 | |
| | 5 | **Other actors:** Professor |
| | 6 | |
| | 7 | **Description:** |
| | 8 | Administrator links professors to a university, meaning they are officially affiliated with that institution. |
| | 9 | |
| | 10 | **Scenario:** |
| | 11 | |
| | 12 | 1. Administrator selects “Assign Professor to University” |
| | 13 | |
| | 14 | 2. System lists all universities: |
| | 15 | {{{ |
| | 16 | SELECT Id, Name |
| | 17 | FROM University; |
| | 18 | }}} |
| | 19 | |
| | 20 | 3. Administrator selects one university. |
| | 21 | |
| | 22 | 4. System lists all professors: |
| | 23 | {{{ |
| | 24 | SELECT Id, Name, Surname |
| | 25 | FROM Professor; |
| | 26 | }}} |
| | 27 | |
| | 28 | 5. Administrator selects professor and confirms assignment. |
| | 29 | |
| | 30 | 6. System records affiliation: |
| | 31 | {{{ |
| | 32 | INSERT INTO Affiliated(University_Id, Professor_Id) |
| | 33 | VALUES (:university_id, :professor_id); |
| | 34 | }}} |
| | 35 | |
| | 36 | 7. System shows success message. |