# salma-elshora/multi-tenant_project architecture

> Architecture diagram of the GitHub repository salma-elshora/multi-tenant_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/salma-elshora/multi-tenant_project
- Repository: https://github.com/salma-elshora/multi-tenant_project

## Overview

The available implementation is a console-based student grade manager: a user can add, find, list, and remove students, record subject grades, and display reports with percentages, letter grades, and pass status. The README instead describes a multi-tenant restaurant SaaS platform, but the supplied source does not show that product. The graph follows the sampled grade-manager code; the separate Student_Management.cs excerpt is not connected to this application. Evidence is limited to the README and the provided source excerpts and index.

Main entry points: [`Student_Grades_System/Program.cs`](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Program.cs) (Menu and input), [`Student_Grades_System/Services/StudentManagement.cs`](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/StudentManagement.cs) (Student management), [`Student_Grades_System/Reports/StudentGradeReport.cs`](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Reports/StudentGradeReport.cs) (Student report), [`Student_Grades_System/Models/SubjectGrade.cs`](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/SubjectGrade.cs) (Subject grade)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Console interaction"]
  node_program["Menu and input<br/>[Program.cs]"]
end

subgraph group_management["Student management"]
  node_student_mgmt["Student management"]
  node_validation["Data validation"]
  node_report["Student report"]
end

subgraph group_domain["Grade domain"]
  node_student["Student information"]
  node_subject["Subject grade<br/>[SubjectGrade.cs]"]
  node_enums["Academic and grade enums<br/>[StudentEnums.cs]"]
  node_calculation["Grade calculation"]
end

node_user(("Console user"))

node_user -->|"enters choices"| node_program
node_program -->|"dispatches actions"| node_student_mgmt
node_program -->|"creates student"| node_student
node_program -->|"creates grade"| node_subject
node_student_mgmt -->|"validates data"| node_validation
node_student_mgmt -->|"prints report"| node_report
node_report -->|"calculates results"| node_calculation
node_report -->|"reads details"| node_student
node_report -->|"reads grades"| node_subject
node_calculation -->|"reads grade values"| node_subject
node_student_mgmt -->|"stores records"| node_student
node_student_mgmt -->|"stores subjects"| node_subject
node_program -->|"uses choices"| node_enums
node_calculation -->|"returns letter grade"| node_enums

click node_program "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Program.cs"
click node_student_mgmt "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/StudentManagement.cs"
click node_validation "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/StudentDataValidation.cs"
click node_report "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Reports/StudentGradeReport.cs"
click node_student "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/StudentInformation.cs"
click node_subject "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/SubjectGrade.cs"
click node_enums "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/StudentEnums.cs"
click node_calculation "https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/GradeCalculation.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_program,node_user toneBlue
class node_student_mgmt,node_validation,node_report toneAmber
class node_student,node_subject,node_enums,node_calculation toneMint
```

## Components

### Console interaction

- [Menu and input](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Program.cs): `Student_Grades_System/Program.cs`

### Student management

- [Student management](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/StudentManagement.cs): `Student_Grades_System/Services/StudentManagement.cs`
- [Data validation](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/StudentDataValidation.cs): `Student_Grades_System/Services/StudentDataValidation.cs`
- [Student report](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Reports/StudentGradeReport.cs): `Student_Grades_System/Reports/StudentGradeReport.cs`

### Grade domain

- [Student information](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/StudentInformation.cs): `Student_Grades_System/Models/StudentInformation.cs`
- [Subject grade](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/SubjectGrade.cs): `Student_Grades_System/Models/SubjectGrade.cs`
- [Academic and grade enums](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Models/StudentEnums.cs): `Student_Grades_System/Models/StudentEnums.cs`
- [Grade calculation](https://github.com/salma-elshora/multi-tenant_project/blob/main/Student_Grades_System/Services/GradeCalculation.cs): `Student_Grades_System/Services/GradeCalculation.cs`

### Other components

- **Console user**

## Connections

- Console user → Menu and input: enters choices (evidence: `Student_Grades_System/Program.cs`)
- Menu and input → Student management: dispatches actions (evidence: `Student_Grades_System/Program.cs`)
- Menu and input → Student information: creates student (evidence: `Student_Grades_System/Program.cs`)
- Menu and input → Subject grade: creates grade (evidence: `Student_Grades_System/Program.cs`)
- Student management → Data validation: validates data (evidence: `Student_Grades_System/Services/StudentManagement.cs`)
- Student management → Student report: prints report (evidence: `Student_Grades_System/Services/StudentManagement.cs`)
- Student report → Grade calculation: calculates results (evidence: `Student_Grades_System/Reports/StudentGradeReport.cs`)
- Student report → Student information: reads details (evidence: `Student_Grades_System/Reports/StudentGradeReport.cs`)
- Student report → Subject grade: reads grades (evidence: `Student_Grades_System/Reports/StudentGradeReport.cs`)
- Grade calculation → Subject grade: reads grade values (evidence: `Student_Grades_System/Services/GradeCalculation.cs`)
- Student management → Student information: stores records (evidence: `Student_Grades_System/Services/StudentManagement.cs`)
- Student management → Subject grade: stores subjects (evidence: `Student_Grades_System/Services/StudentManagement.cs`)
- Menu and input → Academic and grade enums: uses choices (evidence: `Student_Grades_System/Program.cs`)
- Grade calculation → Academic and grade enums: returns letter grade (evidence: `Student_Grades_System/Services/GradeCalculation.cs`)
