| | 1 | = UseCase1004 – Create Subject |
| | 2 | |
| | 3 | **Initiating actor:** Administrator |
| | 4 | |
| | 5 | **Other actors:** None |
| | 6 | |
| | 7 | **Description:** |
| | 8 | Administrator creates a new subject within the system and associates it with a specific faculty's curriculum. |
| | 9 | |
| | 10 | **Scenario:** |
| | 11 | |
| | 12 | 1. Administrator selects option “Create Subject”. |
| | 13 | |
| | 14 | 2. System lists all available faculties to choose from: |
| | 15 | {{{ |
| | 16 | SELECT Id, Name FROM Faculty; |
| | 17 | }}} |
| | 18 | |
| | 19 | 3. Administrator selects a faculty and fills out the subject details form: |
| | 20 | - Name |
| | 21 | - Semester |
| | 22 | - Credits |
| | 23 | |
| | 24 | 4. Administrator submits the data. |
| | 25 | |
| | 26 | 5. System inserts the new subject into the database: |
| | 27 | {{{ |
| | 28 | INSERT INTO Subject(Name, Semester, Credits, Faculty_Id) |
| | 29 | VALUES (:name, :semester, :credits, :faculty_id); |
| | 30 | }}} |
| | 31 | |
| | 32 | 6. System confirms that the subject was successfully added to the faculty curriculum. |